public Optional<TensorType> getTensorType() {
        if (! dataType.isPresent()) {
            lazyDeserialize();
        }
        return dataType.isPresent() ? Optional.of(dataType.get().getTensorType()) : Optional.empty();
    }
Create a tensor field value containing the given tensor
document/src/main/java/com/yahoo/document/datatypes/TensorFieldValue.java