def print_network_sizes(model_file) : net = caffe.Net(model_file, caffe.TRAIN) for k, v in net.blobs.items(): print k, v.data.shape