Skip to content

Conversation

@cvanderw
Copy link
Contributor

In the TV script generation project, the generate() function erroneously
continues to use the current_seq value without first moving to CPU (if training
on GPU). This can lead to an error of the form shown below:

"TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the
tensor to host memory first."

Resolves: #118

In the TV script generation project, the generate() function erroneously
continues to use the current_seq value without first moving to CPU (if training
on GPU). This can lead to an error of the form shown below:

"TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the
tensor to host memory first."

Resolves: udacity#118
@cezannec cezannec merged commit 45cd55d into udacity:master May 3, 2019
@cezannec
Copy link
Contributor

cezannec commented May 3, 2019

Thank you!

smonasco pushed a commit to smonasco/deep-learning-v2-pytorch that referenced this pull request Dec 3, 2019
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

Successfully merging this pull request may close these issues.

[project-tv-script-generation] error from generate()

2 participants