Class JitnnConfig

java.lang.Object
ai.beestream.jitnn.JitnnConfig

public final class JitnnConfig extends Object
jitNN's options, in one immutable object. Each option has a key (jitnn.*), a type, a default and a description; docs/CONFIGURATION.md lists them all.

The runtime reads its configuration once, the first time it needs an option, and keeps it: by default the jitnn.* system properties at that moment (fromSystemProperties()). To configure jitNN from code, install(JitnnConfig) a configuration before the first tensor operation:

JitnnConfig.install(JitnnConfig.builder()
        .set(JitnnConfig.PLAN_CACHE, 64)
        .set(JitnnConfig.NATIVE, "auto")
        .build());

Only the options marked changeable at run time (determinism, autotuning, the GEMM and transpose variants, the CPU backend's library choice) can change afterwards, through change(JitnnConfig.Option, T) or their setters such as JitnnRuntime.setDeterministic; the others are start-time options.

An invalid value (a number that does not parse, a value outside an option's choices) fails with an IllegalArgumentException naming the key.