@Override
    public String toString() {
        return "tensor" +
               (valueType == Value.DOUBLE ? "" : "<" + valueType.id() + ">") +
               "(" + dimensions.stream().map(Dimension::toString).collect(Collectors.joining(",")) + ")";
    }
Returns whether this type can simply be renamed to
the given type. This is the same as being assignable, but disregarding
dimension names.
vespajlib/src/main/java/com/yahoo/tensor/TensorType.java