(t)
| 18 | |
| 19 | # item() is a recent addition, so this helps with backward compatibility. |
| 20 | def to_python_float(t): |
| 21 | if hasattr(t, 'item'): |
| 22 | return t.item() |
| 23 | else: |
| 24 | return t[0] |
| 25 | |
| 26 | class LossScaler: |
| 27 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected