Update README.md

This commit is contained in:
Daniel authored and GitHub committed 2021-04-24 09:57:23 +08:00
1 parent 567b31980e
commit 3bb9463860
1 file changed
+3 -1
+3 -1
View File
@@ -8,6 +8,7 @@
怎样添加provider 以支持gpu等,下面以cuda为例
```
OrtEnv* env;
OrtInitialize(ORT_LOGGING_LEVEL_WARNING, "test", &env)
OrtSessionOptions* session_option = OrtCreateSessionOptions();
@@ -17,4 +18,5 @@
OrtReleaseObject(factory);
OrtCreateSession(env, model_path, session_option, &session);
`
```