(cls, name, bases, attr)
| 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 | |
| 103 | class Model(layer.Layer, metaclass=ModelMeta): |
nothing calls this directly
no test coverage detected