assign(newValue) {
        if (newValue.dtype !== this.dtype) throw new Error(`dtype of the new value (${newValue.dtype}) and ` + `previous value (${this.dtype}) must match`);
        if (!_util.arraysEqual(newValue.shape, this.shape)) throw new Error(`shape of the new value (${newValue.shape}) and ` + `previous value (${this.shape}) must match`);
        trackerFn().disposeTensor(this);
        this.dataId = newValue.dataId;
        trackerFn().incRef(this, null);
    }
Assign a new `tf.Tensor` to this variable. The new `tf.Tensor` must have
the same shape and dtype as the old `tf.Tensor`.

@param newValue New tensor to be assigned to this variable.

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