Skip to content

Aten _To_Copy #6055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Aten _To_Copy #6055

wants to merge 1 commit into from

Conversation

Abhi-hpp
Copy link
Contributor

@Abhi-hpp Abhi-hpp commented Oct 9, 2024

Summary:
Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Differential Revision: D64080303

Copy link

pytorch-bot bot commented Oct 9, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6055

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit e08f2cd with merge base 8957dc8 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 9, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 9, 2024
Summary:
Pull Request resolved: pytorch#6055

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 10, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 10, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 11, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 11, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 11, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 14, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 14, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Abhi-hpp added a commit to Abhi-hpp/executorch that referenced this pull request Oct 14, 2024
Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

Summary:

Implement aten._to_copy. Currently we are only interested in fp32 <-> fp16 conversions, but it should theoritically support other dtype conversions too. I noticed an issue with int conversions so limited it to just fp32 and fp16 for now.

Note: Most driver implementations of fp16 cast does not "round up" the result, therefore there might be 1 bit difference between vulkan output and cpu torch.to. Explained in greater detail in the comments.

Reviewed By: SS-JIA

Differential Revision: D64080303
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a6c69a1.

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.

3 participants