pytorch/torch/nn/modules
lancerts b51b27922b Add to_empty() suggestion in the error message (#119353)
Fixes #119293, the comprehensive documentation is [here](0f478d9d61/docs/source/meta.rst (id11)).
Just added the suggestion into the error message so it is more informative to user.

@albanD

Co-authored-by: mikaylagawarecki <mikaylagawarecki@gmail.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119353
Approved by: https://github.com/mikaylagawarecki
2024-02-08 18:30:02 +00:00
..
__init__.py Add python and C++ support for LPPool3d (#114199) 2023-12-08 18:18:44 +00:00
_functions.py [BE]: ruff FURB136: replace ternary with min/max (preview) (#114382) 2023-11-22 22:10:01 +00:00
activation.py Add config to disable TransformerEncoder/MHA fastpath (#112212) 2024-01-02 23:59:30 +00:00
adaptive.py
batchnorm.py Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
channelshuffle.py
container.py
conv.py
distance.py
dropout.py
flatten.py
fold.py
instancenorm.py
lazy.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
linear.py
loss.py Update BCEWithLogitsLoss documentation regarding pos_weight (#117046) 2024-01-12 18:26:25 +00:00
module.py Add to_empty() suggestion in the error message (#119353) 2024-02-08 18:30:02 +00:00
normalization.py
padding.py [Doc] Add padding size constraint in nn.ReflectionPad2d (#115995) 2023-12-18 21:29:14 +00:00
pixelshuffle.py
pooling.py Removes an Incorrect Type Specification from AdaptiveMaxPool1d (#118162) 2024-01-24 20:31:02 +00:00
rnn.py Add a short code snippet in the RNN doc (#119150) 2024-02-06 17:41:51 +00:00
sparse.py
transformer.py Fix TransformerEncoderLayer for bias=False (#116760) 2024-01-05 00:13:10 +00:00
upsampling.py
utils.py