rentruewang / koila

Prevent PyTorch's `CUDA error: out of memory` in just 1 line of code.
https://rentruewang.com/koila/
Apache License 2.0
1.82k stars 62 forks source link

🔧hotfix a bug in getting-started.py #14

Closed feifeibear closed 2 years ago

feifeibear commented 2 years ago

The label tensor has a different shape as the loss, if you use batch splitting on the loss. Therefore I remove the cross cross_entropy from the lazy evaluation list.