Skip to content

Instantly share code, notes, and snippets.

@Noiredd
Last active October 2, 2017 11:00
Show Gist options
  • Save Noiredd/1e21baf8b4e4c1a3598d849142560e3d to your computer and use it in GitHub Desktop.
Save Noiredd/1e21baf8b4e4c1a3598d849142560e3d to your computer and use it in GitHub Desktop.
example code for #5173 (caffe)
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