尝试初始化图形变量时出现此错误(通过tf.global_variables_initializer())。
{
"Foo": "hola",
"Inner": {"Bar": "hello"}
}
该图在此处放置非常复杂。这是while_loop的一个片段,我怀疑这可能是发生错误的地方。
en/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1135, in _run
feed_dict_tensor, options, run_metadata)
File "/home/tunguyen/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1316, in _do_run
run_metadata)
File "/home/tunguyen/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1335, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Input 1 of node while_2/Merge was passed float from while_2/NextIteration:0 incompatible with expected int32.