popBack(elementShape, elementDtype) {
        if (elementDtype !== this.elementDtype) throw new Error(`Invalid data types; op elements ${elementDtype}, but list elements ${this.elementDtype}`);
        if (this.size() === 0) throw new Error("Trying to pop from an empty list.");
        const outputElementShape = (0, _tensorUtils.inferElementShape)(this.elementShape, this.tensors, elementShape);
        const tensor = this.tensors.pop();
        tensor.kept = false;
        (0, _tensorUtils.assertShapesMatchAllowUndefinedSize)(tensor.shape, elementShape, "TensorList shape mismatch: ");
        return (0, _tfjsCore.reshape)(tensor, outputElementShape);
    }
Pop a tensor from the end of the list.
@param elementShape shape of the tensor
@param elementDtype data type of the tensor