Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

An AttributeError while running iris_save_restore.py #116

Closed
ChihChengYang opened this issue Feb 26, 2016 · 2 comments
Closed

An AttributeError while running iris_save_restore.py #116

ChihChengYang opened this issue Feb 26, 2016 · 2 comments

Comments

@ChihChengYang
Copy link

* Traceback (most recent call last):
File "iris_save_restore.py", line 26, in
new_classifier = skflow.TensorFlowEstimator.restore('/tmp/skflow_examples/iris_custom_model')
File "/usr/lib/python3.4/site-packages/skflow/estimators/base.py", line 463, in restore
estimator._restore(path)
File "/usr/lib/python3.4/site-packages/skflow/estimators/base.py", line 401, in _restore
saver_def = tf.python.training.saver_pb2.SaverDef()
AttributeError: 'module' object has no attribute 'saver_pb2'
*

The location of saver_pb2.py seems to have been changed in the latest tensorflow ?

saver_def = tf.python.training.saver_pb2.SaverDef()

   saver_def = tf.core.protobuf.saver_pb2.SaverDef()
@terrytangyuan
Copy link
Member

Yes please try the latest version. It's fixed in #108

@ChihChengYang
Copy link
Author

Ok, Thank you...

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

No branches or pull requests

2 participants