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

Move one_hot_encode to function/tensor method #314

Closed
Tracked by #278
coreylowman opened this issue Dec 15, 2022 · 1 comment
Closed
Tracked by #278

Move one_hot_encode to function/tensor method #314

coreylowman opened this issue Dec 15, 2022 · 1 comment

Comments

@coreylowman
Copy link
Owner

Since you can now have usize Tensors, this should should move away from accepting usize slices/arrays and just accept a tensor:

impl<D: Dim> Tensor<(D, ), usize> {
    pub fn one_hot_encode<const N: usize>(self) -> Tensor<(D, Const<N>), f32> {
        // ...
    }
}
@coreylowman coreylowman mentioned this issue Dec 19, 2022
47 tasks
@coreylowman
Copy link
Owner Author

Closed by #462

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

No branches or pull requests

1 participant