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

Generalize Output => Tensor/TensorView convenience methods #383

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

robertknight
Copy link
Owner

Replace Output::{into_int, into_float} with generic into_tensor and Output::{as_float_ref, as_int_ref} with generic as_tensor_view.

This adds support for u8/i8 tensors and other types as they are added in future.

Replace `Output::{into_int, into_float}` with generic `into_tensor` and
`Output::{as_float_ref, as_int_ref}` with generic `as_tensor_view`.

This adds support for u8/i8 tensors and other types as they are added in
future.
@robertknight robertknight merged commit ba13b33 into main Oct 15, 2024
2 checks passed
@robertknight robertknight deleted the generalize-output-conversions branch October 15, 2024 07:07
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