Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run 'python model.py' in the demo folder #28

Closed
linhanxiao opened this issue Jul 24, 2018 · 7 comments
Closed

run 'python model.py' in the demo folder #28

linhanxiao opened this issue Jul 24, 2018 · 7 comments

Comments

@linhanxiao
Copy link

there is a error
File "model.py", line 88, in
tf.import_graph_def(graph_def_optimized)
File "/home/lhx/miniconda3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func
return func(*args, **kwargs)
File "/home/lhx/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 489, in import_graph_def
graph._c_graph, serialized, options) # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'EdgeBias' in binary running on lhx-910. Make sure the Op and Kernel are registered in the binary running in this process.

@kyeshmz
Copy link

kyeshmz commented Jul 24, 2018

I can confirm this on my side as well.
Running Ubuntu 16.04. Anaconda3 env.

@linhanxiao
Copy link
Author

my env is Ubuntu 14.04. Anaconda3

@linhanxiao
Copy link
Author

pip install blocksparse-1.0.0-py2.py3-none-any.whl
python
import blocksparse

there is a error
Traceback (most recent call last):
File "", line 1, in
File "/home/lhx/miniconda3/lib/python3.6/site-packages/blocksparse/init.py", line 6, in
bs_module = load_op_library(os.path.join(get_data_files_path(), 'blocksparse_ops.so'))
File "/home/lhx/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/lhx/miniconda3/lib/python3.6/site-packages/blocksparse/blocksparse_ops.so: undefined symbol: ZN10tensorflow7strings6StrCatERKNS0_8AlphaNumES3_S3_S3

@linhanxiao
Copy link
Author

@kkshmz

@linhanxiao
Copy link
Author

@prafullasd
when i run 'python model.py'
there is a error
File "model.py", line 88, in
tf.import_graph_def(graph_def_optimized)
File "/home/lhx/miniconda3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func
return func(*args, **kwargs)
File "/home/lhx/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 489, in import_graph_def
graph._c_graph, serialized, options) # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'EdgeBias' in binary running on lhx-910. Make sure the Op and Kernel are registered in the binary running in this process.

@prafullasd
Copy link
Contributor

Try using the unoptimized model, it doesnt need you to install blocksparse. Download it from https://storage.googleapis.com/glow-demo/large3/graph_unoptimized.pb, and then set optimized=False in model.py

@codingpy
Copy link

codingpy commented Jul 12, 2019

Try using the unoptimized model, it doesnt need you to install blocksparse. Download it from https://storage.googleapis.com/glow-demo/large3/graph_unoptimized.pb, and then set optimized=False in model.py

You just tell him how to avoid this problem, but not how to solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants