Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAN RUN main.py without GPU. #20

Open
huamgmin opened this issue Dec 1, 2019 · 2 comments
Open

CAN RUN main.py without GPU. #20

huamgmin opened this issue Dec 1, 2019 · 2 comments

Comments

@huamgmin
Copy link

huamgmin commented Dec 1, 2019

I install Pytorch0.4 which choose cuda none.And after i run the main.py ,i got a error:torch.cuda.LongTensor is not enabled.,which i haven't found a simillar problem online.whether i need use a computer with GPU and CUDA?

@stefanwezel
Copy link

I had the same issue... in main.py simply add default=False in the argparse for the cuda argument :)

change
parser.add_argument('--cuda', action='store_false', help='use CUDA')
to
parser.add_argument('--cuda', action='store_false', default=False, help='use CUDA')

@shawntan
Copy link
Collaborator

We wanted to run it with cuda by default, so we flipped the meaning of that flag. You can also use --cuda to run without cuda.

Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants