Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Slice node with non-constant start value #3940

@alannnna

Description

@alannnna

Right now Glow requires slice nodes to have constant starts. What's the feasibility of making start a (non-constant) NodeValue? This is the op spec I have in mind - notably, size is specified instead of ends, so the SliceNode's output would have a static shape.

My use case is running something with a dynamic start but a constant shape via the ONNX model loader. If the above is possible, I would also like to expose it as a custom Glow op in the ONNX loader (so that I can specify start and size instead of the ONNX spec's start and ends).

Metadata

Metadata

Assignees

No one assigned

    Labels

    onnxONNX support related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions