pytorch / ignite

High-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently.
https://pytorch-ignite.ai
BSD 3-Clause "New" or "Revised" License
4.5k stars 608 forks source link

Fix error in old PyTorch for KL and JS divergence #3236

Closed kzkadc closed 2 months ago

kzkadc commented 3 months ago

Fixes https://github.com/pytorch/ignite/pull/3232#issuecomment-2063322746

Check list:

vfdev-5 commented 2 months ago

There are unrelated CI failures to fix later, so will be merging this PR.