(t)
| 34 | |
| 35 | # item() is a recent addition, so this helps with backward compatibility. |
| 36 | def to_python_float(t): |
| 37 | if hasattr(t, 'item'): |
| 38 | return t.item() |
| 39 | return t[0] |
| 40 | |
| 41 | |
| 42 | class LossScalerBase: |
nothing calls this directly
no outgoing calls
no test coverage detected