Fix C# APIs (#183)

* Fix c# APIs

* reformat
This commit is contained in:
Fangjun Kuang
2023-06-24 00:56:53 +08:00
committed by GitHub
parent 81579bbddd
commit 157b6b801b
4 changed files with 84 additions and 56 deletions

View File

@@ -23,6 +23,7 @@ namespace SherpaOnnx
Joiner = "";
Tokens = "";
NumThreads = 1;
Provider = "cpu";
Debug = 0;
}
[MarshalAs(UnmanagedType.LPStr)]
@@ -40,6 +41,9 @@ namespace SherpaOnnx
/// Number of threads used to run the neural network model
public int NumThreads;
[MarshalAs(UnmanagedType.LPStr)]
public string Provider;
/// true to print debug information of the model
public int Debug;
}