Skip to content

Conversation

@AleksKnezevic
Copy link
Contributor

Data type promotion is incorrect on pytorch divide. As you can see here: https://pytorch.org/docs/stable/generated/torch.div.html#torch.div when both inputs are integers, they should get promoted to default scalar type, to allow true division.

@masahi masahi merged commit 375566b into apache:main Mar 23, 2022
@masahi
Copy link
Member

masahi commented Mar 23, 2022

Please also attach a test case next time.

@AleksKnezevic AleksKnezevic deleted the fix_pytorch_divide branch March 24, 2022 13:13
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
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.

2 participants