(func, *args, **kwargs)
| 4 | |
| 5 | |
| 6 | def multi_apply(func, *args, **kwargs): |
| 7 | pfunc = partial(func, **kwargs) if kwargs else func |
| 8 | map_results = map(pfunc, *args) |
| 9 | return tuple(map(list, zip(*map_results))) |
| 10 | |
| 11 | |
| 12 | def torch_to_numpy(x): |
nothing calls this directly
no outgoing calls
no test coverage detected