private void lazyDeserialize() {
        if (tensor.isEmpty() && serializedTensor.isPresent()) {
            var t = TypedBinaryFormat.decode(Optional.empty(), GrowableByteBuffer.wrap(serializedTensor.get()));
            Optional<Tensor> newTensor = Optional.of(t);
            assignTypeFrom(newTensor);
            this.tensor = newTensor;
        }
    }
Create a tensor field value containing the given tensor
document/src/main/java/com/yahoo/document/datatypes/TensorFieldValue.java