-
Notifications
You must be signed in to change notification settings - Fork 55
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: 'list' object has no attribute 'op' #2
Comments
I think it may be caused by different version, because i don't have that problem. |
I have changed the struct of 'parameter_list'. You can download new code and try again~ |
Thank you so much. It works. |
I fixed some bug again |
gao@ubuntu14:~/py_work/DBN/Tensorflow_deep-belief-network-master/test$ python3 classification_MINST.py
Extracting ../dataset/MNIST_data/train-images-idx3-ubyte.gz
Extracting ../dataset/MNIST_data/train-labels-idx1-ubyte.gz
Extracting ../dataset/MNIST_data/t10k-images-idx3-ubyte.gz
Extracting ../dataset/MNIST_data/t10k-labels-idx1-ubyte.gz
Traceback (most recent call last):
File "classification_MINST.py", line 42, in
rbm_lr=1e-3)
File "../models/dbn.py", line 47, in init
self.build_model()
File "../models/dbn.py", line 89, in build_model
self.train_batch_bp=_optimization.trainer(algorithm=self.bp_algorithm).minimize(self.loss, var_list=self.parameter_list)
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/optimizer.py", line 288, in minimize
grad_loss=grad_loss)
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/optimizer.py", line 346, in compute_gradients
processors = [_get_processor(v) for v in var_list]
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/optimizer.py", line 346, in
processors = [_get_processor(v) for v in var_list]
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/optimizer.py", line 115, in _get_processor
if v.op.type == "ReadVariableOp":
AttributeError: 'list' object has no attribute 'op'
could you tell me how to resolve it? Thanks
The text was updated successfully, but these errors were encountered: