private static Optional<Tensor> maybeFromBinaryValueString(
            String valueString,
            Optional<TensorType> optType,
            List<String> dimensionOrder)
    {
        if (optType.isEmpty()) {
            return Optional.empty();
        }
        var type = optType.get();
        if (validHexString(type, valueString)) {
            var tensor = tensorFromDenseValueString(valueString, optType, dimensionOrder);
            return Optional.of(tensor);
        }
        return Optional.empty();
    }
Derives the tensor type from the first address string in the given tensor string
vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java