Skip to content

fix: return error instead of panic in Tensor::dimensions for negative nbDims#90

Merged
theHamsta merged 1 commit intorustnn:mainfrom
theHamsta:invalid-shape-check
Apr 30, 2026
Merged

fix: return error instead of panic in Tensor::dimensions for negative nbDims#90
theHamsta merged 1 commit intorustnn:mainfrom
theHamsta:invalid-shape-check

Conversation

@theHamsta
Copy link
Copy Markdown
Contributor

Fixes #87

@theHamsta theHamsta force-pushed the invalid-shape-check branch 2 times, most recently from 8e5dd68 to ca9b3df Compare April 30, 2026 19:26
@theHamsta theHamsta force-pushed the invalid-shape-check branch from ca9b3df to b4e8eee Compare April 30, 2026 19:43
@theHamsta theHamsta merged commit afd41ae into rustnn:main Apr 30, 2026
5 checks passed
@theHamsta theHamsta deleted the invalid-shape-check branch April 30, 2026 20:30
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

1 participant