pytorch/torch/nn/modules
zeshengzong c9c0f8eae3 Add plot for torch.nn.Threshold and torch.nn.GLU (#150171)
Fixes #150170

## Changes

- Add plot for `torch.nn.Threshold` and `torch.nn.GLU`
- Add example output make them easier get result by users

## Test Result

![image](https://github.com/user-attachments/assets/f6c5bc46-f9b7-4db7-9797-e08d8423d1b3)

![image](https://github.com/user-attachments/assets/ad4e6c84-7b29-44f1-b7bd-9c81e4a92ef8)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150171
Approved by: https://github.com/albanD
2025-04-08 03:55:37 +00:00
..
__init__.py
_functions.py
activation.py Add plot for torch.nn.Threshold and torch.nn.GLU (#150171) 2025-04-08 03:55:37 +00:00
adaptive.py [BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408) 2025-02-04 19:07:04 +00:00
batchnorm.py Generalize mixed precision in DDP (#146808) 2025-02-16 11:59:40 +00:00
channelshuffle.py
container.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
conv.py PEP585: Missed conversions (#145342) 2025-01-29 05:24:36 +00:00
distance.py Fix docs format error in torch.nn (#150156) 2025-03-28 20:54:09 +00:00
dropout.py
flatten.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
fold.py
instancenorm.py
lazy.py Fixed abnormal behavior of LazyLinear when using LayzLinear and load_state together (#147599) 2025-03-19 10:01:12 +00:00
linear.py Fix broken LazyLinear init (#149693) 2025-03-25 23:49:49 +00:00
loss.py Move formulas on separate line in loss.py (#150565) 2025-04-03 20:47:35 +00:00
module.py Optimize param prepend class reference torch.nn.Module (#148304) 2025-03-04 08:46:14 +00:00
normalization.py [BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408) 2025-02-04 19:07:04 +00:00
padding.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
pixelshuffle.py
pooling.py Optimize MaxPool1d param ceil_mode description (#148869) 2025-03-17 08:50:40 +00:00
rnn.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
sparse.py
transformer.py Fix docs format error in torch.nn (#150156) 2025-03-28 20:54:09 +00:00
upsampling.py
utils.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00