Package 

Class BackendOptionsMap


  • 
    public final class BackendOptionsMap
    
                        

    A map of backend name -> backend options, passed to Module.load to configure ExecuTorch backends at model-load (delegate-init) time. Mirrors the iOS BackendOptionsMap.

    Because the options travel with the load, this is per-model and ordering-safe (no process-global setter to sequence before the load). Example:

    val options = BackendOptionsMap().setInt("XnnpackBackend", "workspace_sharing_mode", 2)
    val module = Module.load(path, options)

    Warning: These APIs are experimental and subject to change without notice.

    • Method Summary

      Modifier and Type Method Description
      final BackendOptionsMap setInt(String backendName, String key, Integer value) Set an integer-valued option key on backendName.
      final Boolean isEmpty() True if no options have been set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait