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

Issue with Free Tensor example #93

Open
lingyiyang opened this issue Jul 23, 2024 · 0 comments
Open

Issue with Free Tensor example #93

lingyiyang opened this issue Jul 23, 2024 · 0 comments

Comments

@lingyiyang
Copy link
Contributor

On the website (https://www.roughpy.org/user/fundamentals.free_tensors.html), we have the following example

data = [
    {1: 1., 2: 2.},
    {0: 1., 2: 1.}
    ]
tensor5 = FreeTensor(data, width=2, depth=2)

This is currently broken and returns the following error:
ValueError: maximum nested depth reached in this context at lineno 582 in /project/roughpy/src/scalars/scalars.cpp in function void compute_size_and_type_recurse(rpy::python::PyToBufferOptions&, std::vector<pybind11::object>&, const pybind11::handle&, rpy::python::GroundDataType&, rpy::dimn_t)

I am not sure what this example is doing/illustrating and therefore also do not understand the error I am getting. Fixing the issue and some additional documentation would be appreciated.

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