Class PanamaNnContextFactory

java.lang.Object
ai.tegmentum.wasmtime4j.panama.wasi.nn.PanamaNnContextFactory
All Implemented Interfaces:
ai.tegmentum.wasmtime4j.wasi.nn.NnContextFactory

public final class PanamaNnContextFactory extends Object implements ai.tegmentum.wasmtime4j.wasi.nn.NnContextFactory
Panama implementation of the NnContextFactory interface.

This factory creates Panama-based WASI-NN contexts for neural network inference operations.

Since:
1.0.0
  • Constructor Details

    • PanamaNnContextFactory

      public PanamaNnContextFactory()
      Creates a new Panama WASI-NN context factory.
  • Method Details

    • createNnContext

      public ai.tegmentum.wasmtime4j.wasi.nn.NnContext createNnContext() throws ai.tegmentum.wasmtime4j.wasi.nn.NnException
      Specified by:
      createNnContext in interface ai.tegmentum.wasmtime4j.wasi.nn.NnContextFactory
      Throws:
      ai.tegmentum.wasmtime4j.wasi.nn.NnException
    • isNnAvailable

      public boolean isNnAvailable()
      Specified by:
      isNnAvailable in interface ai.tegmentum.wasmtime4j.wasi.nn.NnContextFactory
    • getDefaultExecutionTarget

      public ai.tegmentum.wasmtime4j.wasi.nn.NnExecutionTarget getDefaultExecutionTarget()
      Specified by:
      getDefaultExecutionTarget in interface ai.tegmentum.wasmtime4j.wasi.nn.NnContextFactory