inferUsing

inline fun <M : ExecutionProviderCompatible, R> M.inferUsing(vararg providers: ExecutionProvider, block: (M) -> R): R

Extension function for explicitly specifying the execution provider for specific code block. Follows kotlin.run semantics.