Skip to content
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

Aten _To_Copy #6055

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Aten _To_Copy #6055

wants to merge 3 commits 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.

❌ 1 New Failure

As of commit 5b4ff1f with merge base 27330f2 (image):

NEW FAILURE - The following job has failed:

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

abhishekchandra added 2 commits October 9, 2024 16:33
Summary: Introduce Graph node which will be the parent class for nodes. This allows us to have different nodes that correspond to different vk command buffer functions including shader dispatch.

Differential Revision: D64080291
Summary: Introduce a graph node to call vkcmdBlitImage which can convert between dtypes (and also perform scaling, filtering etc. but we don't need them right now).

Differential Revision: D63839654
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

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants