(val)
| 56 | def fp16_to_fp32(val): |
| 57 | """Convert fp16 `val` to fp32""" |
| 58 | def float_conversion(val): |
| 59 | val_typecheck = val |
| 60 | if isinstance(val_typecheck, (Parameter, Variable)): |
| 61 | val_typecheck = val.data |
| 62 | if isinstance(val_typecheck, HALF_TYPES): |
| 63 | val = val.float() |
| 64 | return val |
| 65 | return conversion_helper(val, float_conversion) |
| 66 | |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected