resize(size) {
          if (size < 0) {
              throw new Error(`TensorListResize expects size to be non-negative. Got: ${size}`);
          }
          if (this.maxNumElements !== -1 && size > this.maxNumElements) {
              throw new Error(`TensorListResize input size ${size} is greater maxNumElement ${this.maxNumElements}.`);
          }
          this.tensors.length = size;
      }
/**
       * Update the size of the list.
       * @param size the new size of the list.
       */
Update the size of the list.
@param size the new size of the list.
Update the size of the list . @param size the new size of the list .
resize(size) {
          if (size < 0) {
              throw new Error(`TensorListResize expects size to be non-negative. Got: ${size}`);
          }
          if (this.maxNumElements !== -1 && size > this.maxNumElements) {
              throw new Error(`TensorListResize input size ${size} is greater maxNumElement ${this.maxNumElements}.`);
          }
          this.tensors.length = size;
      }
resize ( size ) { if ( size < 0 ) { throw new Error ( ` ${ size } ` ) ; } if ( this . maxNumElements !== - 1 && size > this . maxNumElements ) { throw new Error ( ` ${ size } ${ this . maxNumElements } ` ) ; } this . tensors . length = size ; }
Update the size of the list.
Update the size of the list .