Skip to content

Commit

Permalink
Address C# comments
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani committed Sep 20, 2023
1 parent 3c8c778 commit 706388d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ public object GetProperty(string propertyName)
var allocator = OrtAllocator.DefaultInstance;
IntPtr propertyValue = IntPtr.Zero;

NativeApiStatus.VerifySuccess(NativeTrainingMethods.OrtGetProperty(handle, propertyNameUtf8, allocator.Pointer, out PropertyType propertyType, out propertyValue));

try
{
NativeApiStatus.VerifySuccess(NativeTrainingMethods.OrtGetProperty(handle, propertyNameUtf8, allocator.Pointer, out PropertyType propertyType, out propertyValue));

if (propertyType == PropertyType.Int)
{
Int64 value;
Expand Down

0 comments on commit 706388d

Please sign in to comment.