@Override
    public TensorType type(TypeContext<NAMETYPE> context) {
        TensorType givenType = context.getType(name);
        if (givenType == null) return null;
        verifyType(givenType);
        return givenType;
    }
A variable tensor which must be compatible with the given type
vespajlib/src/main/java/com/yahoo/tensor/evaluation/VariableTensor.java