When I ran the following code, I got an error in a specific folder, which was very troubling
import chainer
from chain import cuda
cuda.get_device(0).use()
The error says CUDA is not set up, but I have confirmed that it can be run in other folders.
raise RuntimeError(msg)
RuntimeError: CUDA environment is not correctly set up
(see https://github.com/pfnet/chainer#installation).module'dis'has no attribute'COMPILER_FLAG_NAMES'
dis.py
file was local.
dis.py
is a standard module that relies on a chain, and if a file with this name is local, it will not be able to read what it originally wants.
© 2024 OneMinuteCode. All rights reserved.