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

Fix exception from splice #297

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

Honry
Copy link
Collaborator

@Honry Honry commented Nov 14, 2024

MLOperand.shape now returns a read-only Array,
this would cause splice throws TypeError because it is trying to modify a read-only Array.

Fix this issue by creating a copy from the read-only Array.

MLOperand.shape now returns a readonly Array,
this would cause splice throws TypeError because it is trying
to modify a readonly Array.

Fix this issue by creating a copy from the readonly Array.
@Honry
Copy link
Collaborator Author

Honry commented Nov 14, 2024

@huningxin, @ibelem, PTAL, thanks!

Copy link
Contributor

@huningxin huningxin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fix!

@huningxin huningxin merged commit 570a55c into webmachinelearning:master Nov 14, 2024
3 checks passed
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.

2 participants