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

tensor->dataset not working for 2-d arrays #392

Open
behrica opened this issue Jan 30, 2024 · 2 comments
Open

tensor->dataset not working for 2-d arrays #392

behrica opened this issue Jan 30, 2024 · 2 comments

Comments

@behrica
Copy link
Contributor

behrica commented Jan 30, 2024

https://clojurians.zulipchat.com/#narrow/stream/236259-tech.2Eml.2Edataset.2Edev/topic/tensor-.3Edataset.20not.20working.20for.202-d.20arrays

(tech.v3.dataset.tensor/tensor->dataset (to-array-2d [[1 1] [1 2] [2 2] [2 3]]))

fails., while it works for other 2D structures (seq-of-seq, tensor). Any reason for this ?

similar here:

(dst/tensor->dataset
 (to-array [(int-array [1 1])
            (int-array [1 2])
            (int-array [2 2])
            (int-array [2 3])]))

@cnuernber
Copy link
Collaborator

No great reason - does as-tensor work for the 2d-array?

@behrica
Copy link
Contributor Author

behrica commented Apr 25, 2024

no, returns nil

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

2 participants