Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Maetschke committed Sep 13, 2017
1 parent f991d18 commit af95270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutsml/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ def load_weights(self, weightspath=None):
param.set_value(weights[name])

def print_layers(self):
import lasagne as nn
import lasagne as la
layers = list(LasagneNetwork._layers(self.out_layer, ret_input=True))
for i, layer in enumerate(reversed(layers)):
print('_' * 80)
name = layer.__class__.__name__
shape = nn.layers.get_output_shape(layer)
shape = la.layers.get_output_shape(layer)
print('{:3d} {:30s} {}'.format(i, name, shape), end=' ')
if hasattr(layer, 'filter_size'):
print('{}'.format(layer.filter_size[0]), end='//')
Expand Down

0 comments on commit af95270

Please sign in to comment.