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

Method layer_fn

python/caffe/net_spec.py:205–212  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

203
204 def __getattr__(self, name):
205 def layer_fn(*args, **kwargs):
206 fn = Function(name, args, kwargs)
207 if fn.ntop == 0:
208 return fn
209 elif fn.ntop == 1:
210 return fn.tops[0]
211 else:
212 return fn.tops
213 return layer_fn
214
215

Callers

nothing calls this directly

Calls 1

FunctionClass · 0.85

Tested by

no test coverage detected