Skip to content

Instantly share code, notes, and snippets.

@albusdemens
Last active August 12, 2019 13:07
Show Gist options
  • Select an option

  • Save albusdemens/85c5d7965ed8b0f718527ac3c5fd5203 to your computer and use it in GitHub Desktop.

Select an option

Save albusdemens/85c5d7965ed8b0f718527ac3c5fd5203 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 427, in import_graph_def
graph._c_graph, serialized, options) # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: Input 0 of node Gs/Assign was passed float from G_synthesis_1/lod:0 incompatible with expected float_ref.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/acereser/anaconda3/envs/test/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/acereser/anaconda3/envs/test/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tf2onnx/convert.py", line 161, in <module>
main()
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tf2onnx/convert.py", line 116, in main
graph_def, inputs, outputs = loader.from_graphdef(args.graphdef, args.inputs, args.outputs)
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tf2onnx/loader.py", line 63, in from_graphdef
tf.import_graph_def(graph_def, name='')
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/home/acereser/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 431, in import_graph_def
raise ValueError(str(e))
ValueError: Input 0 of node Gs/Assign was passed float from G_synthesis_1/lod:0 incompatible with expected float_ref.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment