MCPcopy Create free account
hub / github.com/BVLC/caffe / Parameters

Class Parameters

python/caffe/net_spec.py:216–225  ·  view source on GitHub ↗

A Parameters object is a pseudo-module which generates constants used in layer parameters; e.g., Parameters().Pooling.MAX is the value used to specify max pooling.

Source from the content-addressed store, hash-verified

214
215
216class Parameters(object):
217 """A Parameters object is a pseudo-module which generates constants used
218 in layer parameters; e.g., Parameters().Pooling.MAX is the value used
219 to specify max pooling."""
220
221 def __getattr__(self, name):
222 class Param:
223 def __getattr__(self, param_name):
224 return getattr(getattr(caffe_pb2, name + 'Parameter'), param_name)
225 return Param()
226
227
228_param_names = param_name_dict()

Callers 1

net_spec.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected