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

Add versions of toTensor that take a type as their second argument #652

Merged
merged 1 commit into from
May 23, 2024

Conversation

AngelEzquerra
Copy link
Contributor

These are convenience functions which are equivalent to calling the regular toTensor followed by asType. This makes code that uses this relatively common idiom less verbose.

These are convenience functions which are equivalent to calling the regular `toTensor` followed by `asType`. This makes code that uses this relatively common idiom less verbose.
@Vindaar
Copy link
Collaborator

Vindaar commented May 23, 2024

Yup, agreed these are useful! Have the same in Datamancer for Column ⇒ Tensor for the same reason.

@Vindaar Vindaar merged commit 534ea98 into mratsim:master May 23, 2024
6 checks passed
@AngelEzquerra AngelEzquerra deleted the toTensor_with_target_type branch May 23, 2024 08:20
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.

None yet

2 participants