Skip to content

Conversation

@driazati
Copy link
Contributor

Following through on warning that indexing 0-dim tensor would be an
error in PyTorch 0.5 and to use item() instead

Summary:
Following through on warning that indexing 0-dim tensor would be an
error in PyTorch 0.5

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, we didn't test this at all?

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@driazati
Copy link
Contributor Author

Turns out we did, the CI caught it

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

driazati is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ssnl
Copy link
Collaborator

ssnl commented Sep 18, 2018

@driazati Some internal changes are needed.

@driazati
Copy link
Contributor Author

See D9871555

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.

5 participants