Skip to content

Slice op: 'starts' and 'ends' values resulted in a negative dimension #28

@pengwa

Description

@pengwa

sometime slice need -1 in starts or ends, onnx doc actually allow https://github.com/onnx/onnx/blob/master/docs/Changelog.md#slice-1

starts and ends attributes to specify the start and end dimension for each axis in the list of axes, it uses this information to slice the input data tensor. If a negative value is passed for any of the start or end indices, it represent number of elements before the end of that dimension.

So I think this is a bug. This is blocking a real model conversion, could anybody familiar with this take a look? Thanks a lot.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions