pushBack(tensor) {
        if (tensor.dtype !== this.elementDtype) throw new Error(`Invalid data types; op elements ${tensor.dtype}, but list elements ${this.elementDtype}`);
        (0, _tensorUtils.assertShapesMatchAllowUndefinedSize)(tensor.shape, this.elementShape, "TensorList shape mismatch: ");
        if (this.maxNumElements === this.size()) throw new Error(`Trying to push element into a full list.`);
        (0, _tfjsCore.keep)(tensor);
        this.tensors.push(tensor);
    }
Push a tensor to the end of the list.
@param tensor Tensor to be pushed.