-
Notifications
You must be signed in to change notification settings - Fork 632
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: '_ThreadPoolDataset' object has no attribute 'make_initializable_iterator' #348
Comments
Can you please give the command line to reproduce? |
This is from my running shell script: export ROOT_DIR= ${MY_PYTHON} |
Thank you for finding this! Do you want to send a PR to fix this by using tf.compat.v1.data.make_initializable_iterator(ds)? If not I'm happy to fix it. |
Also note, this is broken at HEAD as well as 1.13. |
Please proceed with a fix. Also, could you please take into account following?: @deprecation.deprecated( Therefore, it might be not appropriate solution to use tf.compat.v1.data.make_initializable_iterator. |
Also fix unit tests to catch this bug. See #348. PiperOrigin-RevId: 242009106
Also fix unit tests to catch this bug. See tensorflow#348. PiperOrigin-RevId: 242009106
Also fix unit tests to catch this bug. See #348.
TensorFlow - v1.13.1, benchmarks - cnn_tf_v1.13_compatible.
Tried to evaluate resnet50 model by running tf_cnn_benchmarks.py in following configuration:
TensorFlow: 1.13
Model: resnet50
Dataset: imagenet
Mode: evaluation
SingleSess: False
Batch size: 1 global
1 per device
Num batches: 100
Num epochs: 0.00
Devices: ['/gpu:0']
NUMA bind: False
Data format: NCHW
Optimizer: sgd
Variables: parameter_server
Got following error (last line from call stack):
File ".../benchmarks/scripts/tf_cnn_benchmarks/preprocessing.py", line 547, in create_iterator
ds_iterator = ds.make_initializable_iterator()
AttributeError: '_ThreadPoolDataset' object has no attribute 'make_initializable_iterator'
Was able to fix it and continue evaluation by using:
ds_iterator = tf.compat.v1.data.make_initializable_iterator(ds)
The text was updated successfully, but these errors were encountered: