(storage, storage_offset, size, stride, requires_grad, backward_hooks)
| 24 | torch._utils._rebuild_tensor_v2 |
| 25 | except AttributeError: |
| 26 | def _rebuild_tensor_v2(storage, storage_offset, size, stride, requires_grad, backward_hooks): |
| 27 | tensor = torch._utils._rebuild_tensor(storage, storage_offset, size, stride) |
| 28 | tensor.requires_grad = requires_grad |
| 29 | tensor._backward_hooks = backward_hooks |
| 30 | return tensor |
| 31 | torch._utils._rebuild_tensor_v2 = _rebuild_tensor_v2 |
| 32 | |
| 33 | import torch.nn as nn |
nothing calls this directly
no outgoing calls
no test coverage detected