MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / layer_func

Method layer_func

tensorpack/models/linearwrap.py:47–49  ·  view source on GitHub ↗
(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

45 # parse arguments by tensorpack model convention
46 if layer.use_scope:
47 def layer_func(name, *args, **kwargs):
48 ret = layer(name, self._t, *args, **kwargs)
49 return LinearWrap(ret)
50 else:
51 def layer_func(*args, **kwargs):
52 if len(args) and isinstance(args[0], six.string_types):

Callers

nothing calls this directly

Calls 1

LinearWrapClass · 0.85

Tested by

no test coverage detected