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