Skip to content

Conversation

@suo
Copy link
Member

@suo suo commented Dec 11, 2018

Previously we were returning true if either IValue wasn't a tensor, which…is bad

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Dec 11, 2018
Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

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

looks good


#undef TORCH_FORALL_TAGS

void IValue::dump() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should standardize dump as an api for printing out objects... Sometimes it's toStr() etc

Copy link
Member Author

Choose a reason for hiding this comment

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

I am for dump(), since that's what nodes and graphs use already.

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.

@suo is landing 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.

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

@suo suo deleted the suo/deep_equals branch December 11, 2018 20:32
zdevito pushed a commit to zdevito/ATen that referenced this pull request Dec 11, 2018
Summary:
Previously we were returning true if either IValue wasn't a tensor, which…is bad
Pull Request resolved: pytorch/pytorch#15031

Differential Revision: D13409759

Pulled By: suo

fbshipit-source-id: f8bdcd05d334c1276ce46f55812065d358c1ff5d
@ezyang ezyang added the merged label Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants