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

ValueError: Cannot generate strided slice layer _model_29_Slice_3 with a copy if start != 0 #412

Open
Jool99 opened this issue Mar 15, 2024 · 3 comments
Assignees

Comments

@Jool99
Copy link

Jool99 commented Mar 15, 2024

Getting the error as in the title.

Below is the node in Netron.

All help is appreciated. Thanks in advance!

Screenshot from 2024-03-15 10-54-55

Screenshot from 2024-03-15 10-55-43

@Jool99
Copy link
Author

Jool99 commented Mar 15, 2024

I solved it by replacing the two onnx slices with one split.

@sousoux
Copy link
Contributor

sousoux commented Mar 15, 2024

If you have a graph that you can share that reproduces this we would like to look at it. It should be automatically replaced with a split by nntool.

@sousoux sousoux self-assigned this Mar 15, 2024
@Jool99
Copy link
Author

Jool99 commented Mar 15, 2024

Here they are:

slices_vs_split.zip

You can find the difference by searching for the only two slices in with_slices.onnx.

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