@Override
    public boolean equals(Object other) {
        if (other == this) return true;
        if ( ! (other instanceof OrderedTensorType)) return false;

        List<TensorType.Dimension> thisDimensions = this.dimensions();
        List<TensorType.Dimension> otherDimensions = ((OrderedTensorType)other).dimensions();
        if (thisDimensions.size() != otherDimensions.size()) return false;

        for (int i = 0; i < thisDimensions.size(); ++i) {
            if ( ! thisDimensions.get(i).equals(otherDimensions.get(i))) return false;
        }
        return true;
    }
When dimension ordering between Vespa and imported differs, i.e.
after dimension renaming, use the dimension map to read in values
so that they are correctly laid out in memory for Vespa.
Used when importing tensors.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/OrderedTensorType.java