concat(elementDtype, elementShape) {
        if (!!elementDtype && elementDtype !== this.elementDtype) throw new Error(`TensorList dtype is ${this.elementDtype} but concat requested dtype ${elementDtype}`);
        (0, _tensorUtils.assertShapesMatchAllowUndefinedSize)(this.elementShape, elementShape, "TensorList shape mismatch: ");
        const outputElementShape = (0, _tensorUtils.inferElementShape)(this.elementShape, this.tensors, elementShape);
        if (this.size() === 0) return (0, _tfjsCore.tensor)([], [
            0
        ].concat(outputElementShape));
        return (0, _tfjsCore.tidy)(()=>{
            const tensors = this.tensors.map((t)=>(0, _tfjsCore.reshape)(t, outputElementShape));
            return (0, _tfjsCore.concat)(tensors, 0);
        });
    }
Return the values in the TensorList as a concatenated Tensor.
@param elementDtype output tensor dtype
@param elementShape output tensor element shape