(cls, name, bases, attr)
| 64 | return wrapper |
| 65 | |
| 66 | def __new__(cls, name, bases, attr): |
| 67 | if 'initialize' in attr: |
| 68 | attr['initialize'] = LayerMeta.init_wrapper(attr['initialize']) |
| 69 | if 'forward' in attr: |
| 70 | attr['forward'] = LayerMeta.forward_wrapper(attr['forward']) |
| 71 | |
| 72 | return super(LayerMeta, cls).__new__(cls, name, bases, attr) |
| 73 | |
| 74 | |
| 75 | class Layer(object, metaclass=LayerMeta): |
nothing calls this directly
no test coverage detected