inferAndCloseUsing
inline fun <M : ExecutionProviderCompatible, R> M.inferAndCloseUsing(vararg providers: ExecutionProvider, block: (M) -> R): R
Content copied to clipboard
Extension function for explicitly specifying the execution provider for specific code block. Follows kotlin.use semantics.