Equim-chan / Mortal

🚀🀄️ A fast and strong AI for riichi mahjong, powered by Rust and deep reinforcement learning.
https://mortal.ekyu.moe
GNU Affero General Public License v3.0
929 stars 118 forks source link

Keyword argument in `torch.autocast()` #3

Closed smly closed 2 years ago

smly commented 2 years ago

This PR resolves an error caused by a change in the keyword arguments in torch.autocast().

The order of keyword arguments in torch.autocast() has changed, so you will get an error if you use the latest version of PyTorch. torch.autocast()’s second keyword argument is enabled= until PyTorch 1.10. Since 1.11, dtype= is the second keyword argument.

Reference: