(t)
| 87 | random.seed(args.proc_id) |
| 88 | |
| 89 | def to_python_float(t): |
| 90 | if hasattr(t, 'item'): |
| 91 | return t.item() |
| 92 | else: |
| 93 | return t[0] |
| 94 | |
| 95 | def reduce_tensor(tensor, world_size): |
| 96 | rt = tensor.clone() |
nothing calls this directly
no outgoing calls
no test coverage detected