(self, module)
| 66 | |
| 67 | class FP16_Module(nn.Module): |
| 68 | def __init__(self, module): |
| 69 | super(FP16_Module, self).__init__() |
| 70 | self.add_module('module', module.half()) |
| 71 | |
| 72 | def forward(self, *inputs, **kwargs): |
| 73 | return fp16_to_fp32(self.module(*(fp32_to_fp16(inputs)), **kwargs)) |
nothing calls this directly
no outgoing calls
no test coverage detected