Class OnnxTensorLike

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long allocatorHandle
      The pointer to the native memory allocator.
      protected boolean closed
      Is this value closed?
      protected TensorInfo info
      The size and shape information for this tensor.
      protected long nativeHandle
      The native pointer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkClosed()
      Checks if the OnnxValue is closed, if so throws IllegalStateException.
      TensorInfo getInfo()
      Returns a TensorInfo for this tensor.
      boolean isClosed()
      Checks if this value is closed (i.e., the native object has been released).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nativeHandle

        protected final long nativeHandle
        The native pointer.
      • allocatorHandle

        protected final long allocatorHandle
        The pointer to the native memory allocator.
      • info

        protected final TensorInfo info
        The size and shape information for this tensor.
      • closed

        protected boolean closed
        Is this value closed?
    • Method Detail

      • isClosed

        public boolean isClosed()
        Description copied from interface: OnnxValue
        Checks if this value is closed (i.e., the native object has been released).
        Specified by:
        isClosed in interface OnnxValue
        Returns:
        True if the value is closed and the native object has been released.
      • checkClosed

        protected void checkClosed()
        Checks if the OnnxValue is closed, if so throws IllegalStateException.