-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Document all C# API pubic interfaces #5853
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
Conversation
csharp/test/Microsoft.ML.OnnxRuntime.Tests/Microsoft.ML.OnnxRuntime.Tests.csproj
Outdated
Show resolved
Hide resolved
csharp/tools/Microsoft.ML.OnnxRuntime.PerfTool/Microsoft.ML.OnnxRuntime.PerfTool.csproj
Outdated
Show resolved
Hide resolved
| /// using either a explicit call to Dispose() method or | ||
| /// a pattern of using() block. If this is a member of another | ||
| /// class that class must also become IDisposable and it must | ||
| /// dispose of InferfenceSession in its Dispose() method. |
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.
"InferfenceSession" -> "InferenceSession"
| /// This property queries model metadata, constructs | ||
| /// an instance of ModelMetadata and caches it | ||
| /// </summary> | ||
| /// <returns>Instance of ModelMetdata</returns> |
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.
ModelMetdata -> ModelMetadata
|
|
||
| /// <summary> | ||
| /// Constructs an instance of NamedOnnxValue and represents | ||
| /// a model input to an inference session. It also represents a modle output |
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.
"modle" -> "model"
| #region SafeHandle | ||
| /// <summary> | ||
| /// Overrides SafeHandle.ReleaseHandle() to properly dispose of | ||
| /// the native instance of OrtIoBidning |
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.
OrtIoBidning -> OrtIoBinding
| /// </param> | ||
| /// <param name="elementType">discovered tensor element type</param> | ||
| /// <returns></returns> | ||
| /// <returns>And instance of OrtValue constructed on top of the object</returns> |
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.
And -> An
|
|
||
|
|
||
| /// <summary> | ||
| /// Default __ctor. Creates default RuntimeOptions |
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.
__ctor -> ctor
| /// Log Verbosity Level for the session logs. Default = 0. Valid values are >=0. | ||
| /// This takes into effect only when the LogSeverityLevel is set to ORT_LOGGING_LEVEL_VERBOSE. | ||
| /// </summary> | ||
| /// <value>returns _logVerbosityLevel value</value> |
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.
nit: a lot of these comments seem to not provide useful information, just implementation details
|
|
||
| private readonly Type _primitiveType; | ||
| /// <summary> | ||
| /// Constructs TensorBae |
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.
TensorBae -> TensorBase
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" /> | ||
| <PackageReference Include="xunit" Version="2.4.1" /> | ||
| <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /> | ||
| <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /> |
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.
nit: general comment, trailing whitespace
Description:
Supply missing documentation pieces. Prepare to generate doc pages.