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
I have a caffe with python 3 interface installed. When trying to use:
solver.net.forward_all() I get the following error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-341-419dfac25475> in <module>()
----> 1 solver.net.forward_all()
/root/caffe/python/caffe/pycaffe.py in _Net_forward_all(self, blobs, **kwargs)
173 # Collect outputs from batches
174 all_outs = {out: [] for out in set(self.outputs + (blobs or []))}
--> 175 for batch in self._batch(kwargs):
176 outs = self.forward(blobs=blobs, **batch)
177 for out, out_blob in outs.iteritems():
/root/caffe/python/caffe/pycaffe.py in _Net_batch(self, blobs)
257 batch: {blob name: list of blobs} dict for a single batch.
258 """
--> 259 num = len(blobs.itervalues().next())
260 batch_size = self.blobs.itervalues().next().num
261 remainder = num % batch_size
AttributeError: 'dict' object has no attribute 'itervalues'
values() dict method should be used for python 3 instead. It's possible that this is not the only place where this error occurs.
The text was updated successfully, but these errors were encountered:
I have a caffe with python 3 interface installed. When trying to use:
solver.net.forward_all() I get the following error:
values() dict method should be used for python 3 instead. It's possible that this is not the only place where this error occurs.
The text was updated successfully, but these errors were encountered: