Skip to content

[WIP] Fix error handling in Tensor::dimensions for invalid nbDims#88

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-invalid-dimensions-error
Closed

[WIP] Fix error handling in Tensor::dimensions for invalid nbDims#88
Copilot wants to merge 1 commit intomainfrom
copilot/fix-invalid-dimensions-error

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 30, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Should return error in Tensor::dimensions for invalid nbDims instead of panic</issue_title>
<issue_description>check here for negative values

Ok(result.d[..result.nbDims as usize].to_vec())
</issue_description>

Comments on the Issue (you are @copilot in this section)

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.

Should return error in Tensor::dimensions for invalid nbDims instead of panic

2 participants