inferAndCloseUsing

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

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