Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Dec 17, 2024
1 parent f42893f commit 1042e75
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/csharp/Adapters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void UnloadAdapter(string adapterName)
internal IntPtr Handle { get { return handle; } }

/// <summary>
/// Implement SafeHandle override
/// Implement SafeHandle override.
/// </summary>
public override bool IsInvalid => handle == IntPtr.Zero;

Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void ClearProviders()
/// </exception>
public void AppendProvider(string providerName)
{
Result.VerifySuccess(NativeMethods.OgaConfigAppendProvider(_configHandle, StringUtils.ToUtf8(provider)));
Result.VerifySuccess(NativeMethods.OgaConfigAppendProvider(_configHandle, StringUtils.ToUtf8(providerName)));
}

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions src/csharp/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public Generator(Model model, GeneratorParams generatorParams)
/// <returns>
/// True if the generation process is done, false otherwise.
/// </returns>
/// <exception cref="OnnxRuntimeGenAIException">
/// Thrown when the call to the GenAI native API fails.
/// </exception>
public bool IsDone()
{
return NativeMethods.OgaGenerator_IsDone(_generatorHandle) != 0;
Expand Down

0 comments on commit 1042e75

Please sign in to comment.