README.md 278 Bytes
Newer Older
1
2
3
4
5
6
This CUDA extension implements optimized cross-entropy loss, adapted from Apex's
[Xentropy](https://github.com/NVIDIA/apex/tree/master/apex/contrib/xentropy).
We make it work for bfloat16 and support in-place backward to save memory.
```sh
cd csrc/xentropy && pip install .
```