Skip to content

Conversation

@Chillee
Copy link
Collaborator

@Chillee Chillee commented May 30, 2019

In particular, I think flooor/ceil should have special handling (even if we silently fail for other functions) as they're returning integers. Having pow(0, -2) return inf is somewhat reasonable, having floor(NaN) return -951347564385 (or something like that) is less so.

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 30, 2019
@eellison
Copy link
Contributor

We have to be careful not to break BC here

@ailzhang
Copy link
Contributor

ailzhang commented May 30, 2019 via email

@Chillee
Copy link
Collaborator Author

Chillee commented May 30, 2019

I believe the original implementation was checked in before 1.1.0.

Does it actually break backwards compatibility though? Ints are implicitly upcasted to floats when necessary right? I suppose there could always be code that called isinstance or something.

@Chillee Chillee added the module: bc-breaking Related to a BC-breaking change label May 30, 2019
@eellison
Copy link
Contributor

I believe the original implementation was checked in before 1.1.0.

Does it actually break backwards compatibility though? Ints are implicitly upcasted to floats when necessary right? I suppose there could always be code that called isinstance or something.

ints arent upcasted to floats

@Chillee
Copy link
Collaborator Author

Chillee commented May 30, 2019

Closing this PR in favor of the stack I'm about to push.

@Chillee Chillee closed this May 30, 2019
@Chillee
Copy link
Collaborator Author

Chillee commented May 30, 2019

This is the new PR: #21124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: bc-breaking Related to a BC-breaking change oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants