求指导
runfile('/home/liug/data/mfcccnn.py', wdir='/home/liug/data')Traceback (most recent call last):
File "<ipython-input-9-aee84d4c319a>", line 1, in <module>
runfile('/home/liug/data/mfcccnn.py', wdir='/home/liug/data')
File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile
execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 88, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "/home/liug/data/mfcccnn.py", line 318, in <module>
train_speech_to_text_network()
File "/home/liug/data/mfcccnn.py", line 282, in train_speech_to_text_network
logit = speech_to_text_network()
File "/home/liug/data/mfcccnn.py", line 133, in speech_to_text_network
out = conv1d_layer(input_tensor=X, size=1, dim=n_dim, activation='tanh', scale=0.14, bias=False)
File "/home/liug/data/mfcccnn.py", line 168, in conv1d_layer
out = tf.nn.conv1d(input_tensor,W, stride=1, padding='SAME')#输出与输入同纬度
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation.py", line 497, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation.py", line 497, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/nn_ops.py", line 2446, in conv1d
with ops.name_scope(name, "conv1d", [value, filters]) as name:
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 5770, in __enter__
g = _get_graph_from_inputs(self._values)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 5430, in _get_graph_from_inputs
_assert_same_graph(original_graph_element, graph_element)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 5366, in _assert_same_graph
original_item))
ValueError: Tensor("conv1d_0/W:0", shape=(1, 20, 128), dtype=float32_ref) must be from the same graph as Tensor("Placeholder:0", shape=(16, ?, 20), dtype=float32).