Skip to content

Conversation

@xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Jul 29, 2019

This resolves two issues in one shot:

  • sub shouldn't be available for bool type.
  • When sub is applied to an unsupported type, the current error messages
    shows "add_cpu/add_cuda is not implemented for [type]". They should be
    "sub_cpu/sub_cuda" instead.

@xuhdev xuhdev requested review from colesbury, gchanan and izdeby July 29, 2019 19:20
@pytorchbot pytorchbot added module: cpu CPU specific problem (e.g., perf, algorithm) module: cuda Related to torch.cuda, and CUDA support in general module: operators labels Jul 29, 2019
@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 29, 2019

Same as #23335 , but corrected error message for bool-bool

@xuhdev xuhdev requested a review from gchanan July 29, 2019 19:39
@xuhdev xuhdev force-pushed the sub-dispatch branch 2 times, most recently from d7ac7d1 to 660a2da Compare July 29, 2019 19:44
This resolves two issues in one shot:

- sub shouldn't be available for bool type.
- When sub is applied to an unsupported type, the current error messages
  shows "add_cpu/add_cuda is not implemented for [type]". They should be
  "sub_cpu/sub_cuda" instead.
@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 29, 2019

@gchanan This PR should be ready now

@gchanan
Copy link
Contributor

gchanan commented Jul 29, 2019

thanks @xuhdev!

@gchanan
Copy link
Contributor

gchanan commented Jul 29, 2019

@izdeby can you handle landing this? I don't know if there are complications with the other Boolean--related PRs you are working on.

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.

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

@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 29, 2019

Thank you all for your review!

@facebook-github-bot
Copy link
Contributor

@izdeby merged this pull request in e366af7.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 30, 2019
Summary:
This resolves two issues in one shot:

- sub shouldn't be available for bool type.
- When sub is applied to an unsupported type, the current error messages
  shows "add_cpu/add_cuda is not implemented for [type]". They should be
  "sub_cpu/sub_cuda" instead.
Pull Request resolved: pytorch/pytorch#23519

Differential Revision: D16548770

Pulled By: izdeby

fbshipit-source-id: fe404a2a97b8d11bd180ec41364bf8e68414fb15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: cpu CPU specific problem (e.g., perf, algorithm) module: cuda Related to torch.cuda, and CUDA support in general open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants