Last active
October 2, 2017 11:00
-
-
Save Noiredd/1e21baf8b4e4c1a3598d849142560e3d to your computer and use it in GitHub Desktop.
example code for #5173 (caffe)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import caffe | |
n = caffe.Net('5173.pt', caffe.TRAIN) | |
for l in n.layers[2:]: | |
print l.blobs[0].data | |
print 'These should be equal:', l.blobs[0].data.flatten()[0], l.blobs[0].data.flatten()[-1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment