diff options
author | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2014-05-19 22:55:50 -0700 |
---|---|---|
committer | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2014-05-19 23:56:48 -0700 |
commit | 111df0ecfc7180ee2f5806a109f78ae13ae7f0d9 (patch) | |
tree | 68e8e7da7427235531ab9f8dff911552fdb2c725 /python | |
parent | 2fc32d558aa45f86d542b30bccbdf299bf93003e (diff) | |
download | caffe-111df0ecfc7180ee2f5806a109f78ae13ae7f0d9.tar.gz caffe-111df0ecfc7180ee2f5806a109f78ae13ae7f0d9.tar.bz2 caffe-111df0ecfc7180ee2f5806a109f78ae13ae7f0d9.zip |
squash infuriating loop assignment bug in batching
Diffstat (limited to 'python')
-rw-r--r-- | python/caffe/pycaffe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/caffe/pycaffe.py b/python/caffe/pycaffe.py index 9caa21b8..8a9e1aab 100644 --- a/python/caffe/pycaffe.py +++ b/python/caffe/pycaffe.py @@ -126,7 +126,7 @@ def _Net_forward_all(self, blobs=None, **kwargs): for batch in self._batch(kwargs): outs = self.forward(blobs=blobs, **batch) for out, out_blob in outs.iteritems(): - all_outs[out].extend(out_blob) + all_outs[out].extend(out_blob.copy()) # Package in ndarray. for out in all_outs: all_outs[out] = np.asarray(all_outs[out]) |