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
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list' #34762
Comments
@rmbadl, Provide the complete standalone code to replicate the issue. Thanks! |
I have no standalone code, the "train.py" code that I use is the tensorflow's one. I was just following this page . |
It has been 14 days with no activity and the |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
@gadagashwini I have the same problem.. I'm using Tensorflow 1.14.0 and python 3.7 |
@bjente, |
same error using tflearn package ==0.3.2 and tenserflow ==1.14 error:'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list' |
Is anybody working on this? Getting the same error. |
restart the kernel ...maybe that help |
Restart the kernel if you recently changed tensorflow versions |
restart kernel it worked for me. |
I changed the version of python to 3.7 from 3.6 it worked |
|
same error on macOS : 12.+ TensorFlow : 2.9.2 tensorboard : 2.9.1 python : 3.9 tensorflow-hub 0.10.0
|
Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the problem
Trying tensorflow's trainning appears an error message about a non existed attribute (register_op_list') . I checked in the file that is supposed to have it and it really doesn't have it.
I looked for that attribute in every single path I thought it could be but I didn't get anything at all.
I have no clue of how I can resolve this.
To resolve the contrib issue of tf2.0 i used tf-slim but if you have a way to resolve it completely that doesn't trigger this error please let me know because I'm quite sure that everything comes because of the "contrib" problem.
Thanks
Source code / logs
### python3 legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config
2019-12-02 13:59:36.908351: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.2
Traceback (most recent call last):
File "legacy/train.py", line 48, in
from tensorflow.contrib import framework as contrib_framework
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/init.py", line 31, in
from tensorflow.contrib import cloud
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/init.py", line 24, in
from tensorflow.contrib.cloud.python.ops.bigquery_reader_ops import *
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/bigquery_reader_ops.py", line 21, in
from tensorflow.contrib.cloud.python.ops import gen_bigquery_reader_ops
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 369, in
_op_def_lib = _InitOpDefLibrary(b"\n\355\001\n\016BigQueryReader\032\024\n\rreader_handle\030\007\200\001\001"\027\n\tcontainer\022\006string\032\002\022\000"\031\n\013shared_name\022\006string\032\002\022\000"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000\210\001\001\n\331\001\n GenerateBigQueryReaderPartitions\032\016\n\npartitions\030\007"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\025\n\016num_partitions\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000")
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 277, in _InitOpDefLibrary
_op_def_registry.register_op_list(op_list)
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list'
The text was updated successfully, but these errors were encountered: