mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Added a `torch.Tensor` method that defines how to transform `other`, a value in the state dictionary, to be loaded into `self`, a param/buffer in an `nn.Module` before swapping via `torch.utils.swap_tensors` * `param.module_load(sd[key])` This method can be overridden using `__torch_function__`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/117913 Approved by: https://github.com/albanD |
||
|---|---|---|
| .. | ||
| test_convolution.py | ||
| test_dropout.py | ||
| test_embedding.py | ||
| test_init.py | ||
| test_lazy_modules.py | ||
| test_load_state_dict.py | ||
| test_module_hooks.py | ||
| test_multihead_attention.py | ||
| test_packed_sequence.py | ||
| test_parametrization.py | ||
| test_pooling.py | ||
| test_pruning.py | ||