private void addDimension(int dimensionIndex, long size, OrderedTensorType.Builder typeBuilder) {
        String name = String.format("%s_%d", vespaName(), dimensionIndex);
        typeBuilder.add(TensorType.Dimension.indexed(name, size));
    }
Onnx slice operation.

Opset 1 to 9 accepts starts, ends, and axes tensors as attributes

Opset 10 and up accepts starts, ends, axes, and steps tensors as inputs. Here we assume these are
constants, otherwise we can't import this model because that would mean we
would not know the resulting tensor type until run-time, and that is currently
not supported in Vespa.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Slice.java