Skip to content

Conversation

AlbertDachiChen
Copy link

Summary:
As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet. - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html - this maybe fixed in future iterations

Differential Revision: D46770449

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 20, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 20, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet.  - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Differential Revision: D46770449

fbshipit-source-id: 32d5e4dc1165791f41a9d55124db488fbb826cdd
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet.  - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Differential Revision: D46770449

fbshipit-source-id: 5f4a727787532708c390a2728aedf1d0dcaf7f37
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet.  - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Differential Revision: D46770449

fbshipit-source-id: 90afab845afd5d33fa817a5ef79c0e7baf41b999
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet.  - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Differential Revision: D46770449

fbshipit-source-id: 26cde876d117f956f5a46401b7a3a17ba50331a7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) Vectorization is not done yet.  - this maybe fixed in future iterations
(4) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Differential Revision: D46770449

fbshipit-source-id: 6916799ec57356d1f2ca5e886551a79172421a94
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 26, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Reviewed By: aakhundov

Differential Revision: D46770449

fbshipit-source-id: 238a304e6bd261363dac92cb31552af9e568d3eb
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 26, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Reviewed By: aakhundov

Differential Revision: D46770449

fbshipit-source-id: e264ade7f0a39a73311caa29951209ed1b38edff
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

AlbertDachiChen added a commit to AlbertDachiChen/AITemplate that referenced this pull request Jun 27, 2023
Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Reviewed By: aakhundov

Differential Revision: D46770449

fbshipit-source-id: e8dd9453f4940936b0da7ce7fc383aa0eafc3288
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

Summary:
Pull Request resolved: facebookincubator#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Reviewed By: aakhundov

Differential Revision: D46770449

fbshipit-source-id: c985355b556af536543fc701053bcc57c71b8084
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46770449

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3c3b256.

Ivorchu pushed a commit to Ivorchu/AITemplate-NM-Pruning-Archive that referenced this pull request Jul 30, 2025
Summary:
Pull Request resolved: facebookincubator/AITemplate#783

As titled, this diffs adds supports for relational operations (e.g. ge, le, gt, lt, eq, ne). The expected behavior is to match equivalent operators in Torch, e.g. https://pytorch.org/docs/stable/generated/torch.ge.html

There are multiple constraints:
(1) Type promotions are not supported.
(2) Broadcast is not supported yet, so it expects tensor of the same shape - this maybe fixed in future iterations
(3) It uses the relational operators, i.e, >=, <, > rather than comparison function that supports different level of precision, e.g. https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____HALF__COMPARISON.html   - this maybe fixed in future iterations

Reviewed By: aakhundov

Differential Revision: D46770449

fbshipit-source-id: ed58c8ff0148b389dc80f76fe6a4413f21c36a2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants