Skip to content

[Draft] Add SetDataType method for Tensor objects - #785

Closed
mklimenk wants to merge 1 commit into
intel:ovep-developfrom
mklimenk:private/mklimenk/tensor_set_data_type
Closed

[Draft] Add SetDataType method for Tensor objects#785
mklimenk wants to merge 1 commit into
intel:ovep-developfrom
mklimenk:private/mklimenk/tensor_set_data_type

Conversation

@mklimenk

Copy link
Copy Markdown

After recent changes in upstream onnxruntime, changing data type of TensorProto object no longer works, since the resulting data type is gathered from an OrtValue.

This fix allows to work around this issue. Since it's a core portion of onnxruntime, it's pending approval from Microsoft and it might be a better idea to merge it directly rather than via OVEP release.

Keeping it as a draft PR for tracking purposes until the decision is made.

@mklimenk mklimenk changed the title Add SetDataType method for Tensor objects [Draft] Add SetDataType method for Tensor objects Aug 21, 2025
@mklimenk

Copy link
Copy Markdown
Author

Closing after discussion with Microsoft in favor of creating a new OrtValue with properly typed data

@mklimenk mklimenk closed this Aug 25, 2025
@mklimenk
mklimenk deleted the private/mklimenk/tensor_set_data_type branch September 10, 2025 11:06
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.

1 participant