File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ BOOST_PYTHON_MODULE(_caffe) {
325
325
bp::return_value_policy<bp::copy_const_reference>()))
326
326
.add_property (" _blobs" , bp::make_function (&Net<Dtype>::blobs,
327
327
bp::return_internal_reference<>()))
328
- .add_property (" _layers " , bp::make_function (&Net<Dtype>::layers,
328
+ .add_property (" layers " , bp::make_function (&Net<Dtype>::layers,
329
329
bp::return_internal_reference<>()))
330
330
.add_property (" _blob_names" , bp::make_function (&Net<Dtype>::blob_names,
331
331
bp::return_value_policy<bp::copy_const_reference>()))
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ def _Net_params(self):
52
52
if len (lr .blobs ) > 0 ])
53
53
54
54
@property
55
- def _Net_layers (self ):
55
+ def _Net_layers_dict (self ):
56
56
"""
57
57
An OrderedDict (bottom to top, i.e., input to output) of network
58
58
layers indexed by name
59
59
"""
60
- return OrderedDict (zip (self ._layer_names , self ._layers ))
60
+ return OrderedDict (zip (self ._layer_names , self .layers ))
61
61
62
62
63
63
@property
@@ -313,7 +313,7 @@ def __getitem__(self, name):
313
313
return [id_to_name [i ] for i in ids ]
314
314
315
315
# Attach methods to Net.
316
- Net .layers = _Net_layers
316
+ Net .layers_dict = _Net_layers_dict
317
317
Net .blobs = _Net_blobs
318
318
Net .blob_loss_weights = _Net_blob_loss_weights
319
319
Net .params = _Net_params
You can’t perform that action at this time.
0 commit comments