-
public final class BackendOptionsMapA 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.
-
-
Constructor Summary
Constructors Constructor Description BackendOptionsMap()
-
Method Summary
Modifier and Type Method Description final BackendOptionsMapsetInt(String backendName, String key, Integer value)Set an integer-valued option key on backendName. final BooleanisEmpty()True if no options have been set. -
-
Method Detail
-
setInt
final BackendOptionsMap setInt(String backendName, String key, Integer value)
Set an integer-valued option key on backendName.
-
-
-
-