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

the question of version #6

Open
Qiao1995 opened this issue Apr 10, 2019 · 0 comments
Open

the question of version #6

Qiao1995 opened this issue Apr 10, 2019 · 0 comments

Comments

@Qiao1995
Copy link

what is the version of the python and torch ?
I have some bugs when I run the tester.py.
for exmple,

Traceback (most recent call last):
File "tester.py", line 502, in
sampler.generate()
File "tester.py", line 144, in generate
sampled_ids = self.word_model.sample(topic, start_tokens)
File "/home/cheng/perl5/Medical-Report-Generation-master/utils/models.py", line 386, in sample
sampled_ids[:, 0] = start_tokens.view(-1, )
File "/usr/local/lib/python3.6/site-packages/torch/tensor.py", line 452, in array
return self.numpy().astype(dtype, copy=False)
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

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

1 participant