Skip to content

Conversation

Gasoonjia
Copy link
Contributor

Summary:
This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Differential Revision: D83094602

Copy link

pytorch-bot bot commented Sep 25, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures, 2 Cancelled Jobs, 1 Unrelated Failure

As of commit ca821bc with merge base df8d03b (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@meta-cla meta-cla 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 Sep 25, 2025
@facebook-github-bot
Copy link
Contributor

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@facebook-github-bot
Copy link
Contributor

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: pytorch#14604

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: pytorch#14604

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: pytorch#14604

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: pytorch#14604

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Differential Revision: D83094602
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

Differential Revision: D83094602
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

Differential Revision: D83094602
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

Differential Revision: D83094602
@Gasoonjia Gasoonjia force-pushed the export-D83094602 branch 2 times, most recently from 41402c2 to f48be9d Compare September 26, 2025 16:38
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 26, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Summary:

this diff introduce aoti_tensor_empty_strided to et cuda backend, which will be one of the main functions to create empty tensor using the given stride.

Reviewed By: larryliu0820

Differential Revision: D83094606
Summary:

This diff introduce `aoti_torch_delete_tensor_object` for deleting tensors created during cuda backend inference.

Reviewed By: larryliu0820

Differential Revision: D83094605
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

Differential Revision: D83094602
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 28, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

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

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating diff in D83094602.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Sep 28, 2025
Summary:

This function introduce aoti_torch_create_tensor_from_blob_v2, a function that create tensor from data blob and custom stride and size.

Worth to notice that unlike aoti_torch_empty_strided, the tensor created by aoti_torch_create_tensor_from_blob_v2 will not have the control of the memory blob. Therefore when we delete it, the memory will not be freed.

Reviewed By: larryliu0820

Differential Revision: D83094602
@facebook-github-bot facebook-github-bot merged commit eca4fc6 into pytorch:main Sep 30, 2025
126 of 132 checks passed
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 meta-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants