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

why use Variable to transform Tensor #36

Closed
Loovelj opened this issue Dec 5, 2019 · 0 comments
Closed

why use Variable to transform Tensor #36

Loovelj opened this issue Dec 5, 2019 · 0 comments

Comments

@Loovelj
Copy link

Loovelj commented Dec 5, 2019

Hello,thans for your sosution , but I'm a little confused about the Variable ,for exalple:

preds_size = Variable(torch.LongTensor([preds.size(0)] * batch_size))

I think pytorch has abandoned the Variable when version greater than 1.0.0

@Loovelj Loovelj closed this as completed Dec 5, 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

No branches or pull requests

1 participant