(cls, name, bases, attr)
| 96 | return wrapper |
| 97 | |
| 98 | def __new__(cls, name, bases, attr): |
| 99 | if 'train_one_batch' in attr: |
| 100 | attr['train_one_batch'] = ModelMeta.buffer_operation( |
| 101 | attr['train_one_batch']) |
| 102 | |
| 103 | return super(ModelMeta, cls).__new__(cls, name, bases, attr) |
| 104 | |
| 105 | |
| 106 | class Model(layer.Layer, metaclass=ModelMeta): |
nothing calls this directly
no test coverage detected