Package 

Interface InferenceAdapter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public interface InferenceAdapter
     implements AutoCloseable
                        

    A loaded on-device model. The SDK core never names a task: it hands an opaque input to run and ships back an opaque output. The shape of input/output is a contract between the server and the adapter for this model's inference kind.

    • Method Summary

      Modifier and Type Method Description
      abstract JsonObject run(JsonObject input) Run one job.
      abstract SampleResult runSample(JsonObject sample) Warm up / self-test using the recipe's sample.
      abstract ModelConfig getConfig()
      • Methods inherited from class ai.zerogpu.android.sdk.adapter.InferenceAdapter

        close
      • Methods inherited from class java.lang.Object

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

      • run

         abstract JsonObject run(JsonObject input)

        Run one job. Input and output are opaque JSON the SDK core never inspects.

      • runSample

         abstract SampleResult runSample(JsonObject sample)

        Warm up / self-test using the recipe's sample.