toTensor() {
        return trackerFn().makeTensor(this.values, this.shape, this.dtype);
    }
Creates an immutable `tf.Tensor` object from the buffer.

@doc {heading: 'Tensors', subheading: 'Creation'}