NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.2k stars 1.36k forks source link

Use a modern tensor constructor in cudnn_gbn #1689

Open crcrpar opened 1 year ago

crcrpar commented 1 year ago

https://github.com/NVIDIA/apex/blob/30a7ad3974b32f7ce68cefabc38374fb4520a35e/apex/contrib/cudnn_gbn/batch_norm.py#L90-L91