mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* [Feature] Sync csharp apis with newly added c apis && demo (#1718) * sync c api to c# * fix typo * add pose tracker c# demo * udpate gitignore * remove print * fix lint * update rotated detection api * update rotated detection demo * rename pose_tracking -> pose_tracker * use input size as default * fix clang-format
24 lines
613 B
C#
24 lines
613 B
C#
namespace MMDeploy
|
|
{
|
|
/// <summary>
|
|
/// model.
|
|
/// </summary>
|
|
public class Model : DisposableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Model"/> class.
|
|
/// </summary>
|
|
/// <param name="modelPath">model path.</param>
|
|
public Model(string modelPath)
|
|
{
|
|
ThrowException(NativeMethods.mmdeploy_model_create_by_path(modelPath, out _handle));
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
protected override void ReleaseHandle()
|
|
{
|
|
NativeMethods.mmdeploy_model_destroy(_handle);
|
|
}
|
|
}
|
|
}
|