pfnet-research / pfhedge

PyTorch-based framework for Deep Hedging
http://pfnet-research.github.io/pfhedge/
MIT License
261 stars 67 forks source link

Supporting pytroch 2.0 #606

Closed masanorihirano closed 1 year ago

masanorihirano commented 1 year ago

torch._six.class_strings is deleted, therefore, replaced to (str, bytes) in our code

masanorihirano commented 1 year ago

mypy 0.910 is incompatible. Therefore changed to 0.920

xxxxxxxxxx\.venv\lib\site-packages\.\torch\distributed\optim\apply_optimizer_in_backward.py: error: INTERNAL ERROR -- Please try using mypy master on Github:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
If this issue continues with mypy master, please report a bug at https://github.com/python/mypy/issues
version: 0.910
xxxxxxxxxxx\.venv\lib\site-packages\.\torch\distributed\optim\apply_optimizer_in_backward.py: : note: please use --show-traceback to print a traceback when reporting a bug