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