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 converter NDArray to primitive arrays #81

Closed
devcrocod opened this issue Dec 16, 2021 · 3 comments · Fixed by #84
Closed

add converter NDArray to primitive arrays #81

devcrocod opened this issue Dec 16, 2021 · 3 comments · Fixed by #84
Labels
good first issue Good for newcomers
Milestone

Comments

@devcrocod
Copy link
Collaborator

There is a converter to a flat array, you need to add a converter to nested arrays:

MultiArray<Float, D?>.toFloatArrayD?(): Array<...<FloatArray>>

Similar to toListD2, toListD3, toListD4

@devcrocod devcrocod added the good first issue Good for newcomers label Dec 16, 2021
@therealansh
Copy link
Contributor

hey @devcrocod i can try this one. Are we planning to add all the primitive array with all the dimensions like D1, D2 and so on for every primitive array?

@devcrocod
Copy link
Collaborator Author

@zaleslaw
Look here, please. That's what you need?

@zaleslaw
Copy link
Contributor

Looks like what I need in KotlinDL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@zaleslaw @devcrocod @therealansh and others