-
Notifications
You must be signed in to change notification settings - Fork 3.6k
C# ResNet50 v2 sample/tutorial #4722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# ResNet50 v2 sample/tutorial #4722
Conversation
|
|
||
| // Run inference | ||
| using var session = new InferenceSession(modelFilePath); | ||
| using IDisposableReadOnlyCollection<DisposableNamedOnnxValue> results = session.Run(inputs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you don't use the alternative synax for the using directive just yet.
using(var session = new InferenceSession(modelFilePath))
using(var results = session.Run(inputs))
{
// Put the rest of the function here so both session and results are still alive until the end of the scope.
}
| @@ -0,0 +1,169 @@ | |||
| # C# Sample: ResNet50 v2 | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for such a clear and detailed readme!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries! 😊
yuslepukhin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
skottmckay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
/azp run Linux CPU CI Pipeline,Linux CPU x64 NoContribops CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,MacOS CI Pipeline,MacOS NoContribops CI Pipeline,Windows CPU CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline |
|
/azp run orttraining-linux-ci-pipeline,orttraining-mac-ci-pipeline,orttraining-linux-gpu-ci-pipeline,Linux OpenVINO CI Pipeline,centos7_cpu |
|
Azure Pipelines successfully started running 5 pipeline(s). |
|
Azure Pipelines successfully started running 9 pipeline(s). |
|
CI failures look unrelated..? |
Description:
Adds a concrete C# sample/tutorial
Motivation and Context
Fixes #4709