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 tensor = this.tensors.pop();
          assertShapesMatchAllowUndefinedSize(tensor.shape, elementShape, 'TensorList shape mismatch: ');
          return tfc.reshape(tensor, elementShape);
      }
/**
       * Pop a tensor from the end of the list.
       * @param elementShape shape of the tensor
       * @param elementDtype data type of the tensor
       */
Pop a tensor from the end of the list.
@param elementShape shape of the tensor
@param elementDtype data type of the tensor
Pop a tensor from the end of the list . @param elementShape shape of the tensor @param elementDtype data type of the tensor
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 tensor = this.tensors.pop();
          assertShapesMatchAllowUndefinedSize(tensor.shape, elementShape, 'TensorList shape mismatch: ');
          return tfc.reshape(tensor, elementShape);
      }
popBack ( elementShape , elementDtype ) { if ( elementDtype !== this . elementDtype ) { throw new Error ( ` ${ elementDtype } ${ this . elementDtype } ` ) ; } if ( this . size ( ) === 0 ) { throw new Error ( 'Trying to pop from an empty list.' ) ; } const tensor = this . tensors . pop ( ) ; assertShapesMatchAllowUndefinedSize ( tensor . shape , elementShape , 'TensorList shape mismatch: ' ) ; return tfc . reshape ( tensor , elementShape ) ; }
Pop a tensor from the end of the list.
Pop a tensor from the end of the list .