MCPcopy Create free account
hub / github.com/apache/singa / __new__

Method __new__

python/singa/model.py:95–100  ·  view source on GitHub ↗
(cls, name, bases, attr)

Source from the content-addressed store, hash-verified

93 return wrapper
94
95 def __new__(cls, name, bases, attr):
96 if 'train_one_batch' in attr:
97 attr['train_one_batch'] = ModelMeta.buffer_operation(
98 attr['train_one_batch'])
99
100 return super(ModelMeta, cls).__new__(cls, name, bases, attr)
101
102
103class Model(layer.Layer, metaclass=ModelMeta):

Callers

nothing calls this directly

Calls 1

buffer_operationMethod · 0.45

Tested by

no test coverage detected