Class PanamaNnGraph

java.lang.Object
ai.tegmentum.wasmtime4j.panama.wasi.nn.PanamaNnGraph
All Implemented Interfaces:
ai.tegmentum.wasmtime4j.wasi.nn.NnGraph, AutoCloseable

public final class PanamaNnGraph extends Object implements ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
Panama implementation of the NnGraph interface for WASI-NN loaded models.
Since:
1.0.0
  • Method Details

    • getNativeHandle

      public long getNativeHandle()
      Specified by:
      getNativeHandle in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
    • getEncoding

      public ai.tegmentum.wasmtime4j.wasi.nn.NnGraphEncoding getEncoding()
      Specified by:
      getEncoding in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
    • getExecutionTarget

      public ai.tegmentum.wasmtime4j.wasi.nn.NnExecutionTarget getExecutionTarget()
      Specified by:
      getExecutionTarget in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
    • createExecutionContext

      public ai.tegmentum.wasmtime4j.wasi.nn.NnGraphExecutionContext createExecutionContext() throws ai.tegmentum.wasmtime4j.wasi.nn.NnException
      Specified by:
      createExecutionContext in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
      Throws:
      ai.tegmentum.wasmtime4j.wasi.nn.NnException
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
    • getModelName

      public String getModelName()
      Specified by:
      getModelName in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ai.tegmentum.wasmtime4j.wasi.nn.NnGraph