concat(dtype) {
          if (!!dtype && dtype !== this.dtype) {
              throw new Error(`TensorArray dtype is ${this.dtype} but concat requested dtype ${dtype}`);
          }
          if (this.size() === 0) {
              return tfc.tensor([], [0].concat(this.elementShape));
          }
          const indices = [];
          for (let i = 0; i < this.size(); i++) {
              indices.push(i);
          }
          // Collect all the tensors from the tensors array.
          const tensors = this.readMany(indices);
          assertShapesMatchAllowUndefinedSize(this.elementShape, tensors[0].shape, `TensorArray shape mismatch: tensor array shape (${this.elementShape}) vs first tensor shape (${tensors[0].shape})`);
          return tfc.concat(tensors, 0);
      }
/**
       * Return the values in the TensorArray as a concatenated Tensor.
       */
Return the values in the TensorArray as a concatenated Tensor.
Return the values in the TensorArray as a concatenated Tensor .
concat(dtype) {
          if (!!dtype && dtype !== this.dtype) {
              throw new Error(`TensorArray dtype is ${this.dtype} but concat requested dtype ${dtype}`);
          }
          if (this.size() === 0) {
              return tfc.tensor([], [0].concat(this.elementShape));
          }
          const indices = [];
          for (let i = 0; i < this.size(); i++) {
              indices.push(i);
          }
          const tensors = this.readMany(indices);
          assertShapesMatchAllowUndefinedSize(this.elementShape, tensors[0].shape, `TensorArray shape mismatch: tensor array shape (${this.elementShape}) vs first tensor shape (${tensors[0].shape})`);
          return tfc.concat(tensors, 0);
      }
concat ( dtype ) { if ( ! ! dtype && dtype !== this . dtype ) { throw new Error ( ` ${ this . dtype } ${ dtype } ` ) ; } if ( this . size ( ) === 0 ) { return tfc . tensor ( [ ] , [ 0 ] . concat ( this . elementShape ) ) ; } const indices = [ ] ; for ( let i = 0 ; i < this . size ( ) ; i ++ ) { indices . push ( i ) ; } const tensors = this . readMany ( indices ) ; assertShapesMatchAllowUndefinedSize ( this . elementShape , tensors [ 0 ] . shape , ` ${ this . elementShape } ${ tensors [ 0 ] . shape } ` ) ; return tfc . concat ( tensors , 0 ) ; }
Return the values in the TensorArray as a concatenated Tensor.
Return the values in the TensorArray as a concatenated Tensor .
// Collect all the tensors from the tensors array.