Disables complex floor, ceil, trunc (to be compatible with NumPy)#35592
Disables complex floor, ceil, trunc (to be compatible with NumPy)#35592
Conversation
💊 CircleCI build failures summary and remediationsAs of commit d3c9d69 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following build failures do not appear to be due to upstream breakages:
|
anjali411
left a comment
There was a problem hiding this comment.
yup agreed! LGTM thank you for fixing this :D
|
if we support writable imag/real for complex you can just call: |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
NumPy doesn't allow complex inputs to floor, ceil, or trunc, and without careful deliberation I don't think PyTorch should, either: is it intuitive that these functions apply to both the real and imaginary parts of complex tensors, or only to the real parts?
This PR disables these functions for complex inputs so we don't prematurely commit a particular behavior.