You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [7]: fromnasbenchimportapi---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
<ipython-input-7-5ba3f4b880ca>in<module>---->1fromnasbenchimportapi~/dump/nasbench/nasbench/api.pyin<module>9697fromnasbench.libimportconfig--->98fromnasbench.libimportevaluate99fromnasbench.libimportmodel_metrics_pb2100fromnasbench.libimportmodel_specas_model_spec~/dump/nasbench/nasbench/lib/evaluate.pyin<module>2223fromnasbench.libimportcifar--->24fromnasbench.libimportmodel_builder25fromnasbench.libimporttraining_time26importnumpyasnp~/dump/nasbench/nasbench/lib/model_builder.pyin<module>2930fromnasbench.libimportbase_ops--->31fromnasbench.libimporttraining_time32importnumpyasnp33importtensorflowastf~/dump/nasbench/nasbench/lib/training_time.pyin<module>128129-->130class_TimingRunHook(tf.train.SessionRunHook):
131"""Hook to stop the training after a certain amount of time."""132AttributeError: module'tensorflow._api.v2.train'hasnoattribute'SessionRunHook'
The text was updated successfully, but these errors were encountered:
I found a workaround by replacing 'train' with 'estimator' (tf.estimator.SessionRunHook) in the training_time.py file.
It will also raise a similar error for 'tf.train.CheckpointSaverListener' in training_time.py - line:174 and for 'tf.train.NanLossDuringTrainingError' in evaluate.py - line:30. Again replacing 'train' with 'estimator' should fix this for now.
Finally, in api.py replacing 'tf.python_io.tf_record_iterator' with 'tf.compat.v1.io.tf_record_iterator' should allow you to run example.py. Hope this helps!
Trying out the example I get the following error.
The text was updated successfully, but these errors were encountered: