提交代码
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<!--
|
||||
DirectML 的 build targets 仅在 PlatformTarget=x64 时复制 DirectML.dll,
|
||||
AnyCPU 会导致运行时缺少该原生库而退回 CPU,因此这里固定为 x64。
|
||||
-->
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -11,7 +16,12 @@
|
||||
<PackageReference Include="LiteDB" Version="5.0.21" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.14" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.14" />
|
||||
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.20.1" />
|
||||
<!--
|
||||
DirectML 版 ONNX Runtime:可用核显/独显推理,不支持的算子自动回退 CPU。
|
||||
注意:该包与纯 CPU 版 Microsoft.ML.OnnxRuntime 的原生 dll 冲突,只能二选一;
|
||||
1.24.4 是最后一个提供 DirectML 执行后端的稳定版本。
|
||||
-->
|
||||
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.24.4" />
|
||||
<PackageReference Include="OpenCvSharp4" Version="4.10.0.20241108" />
|
||||
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.10.0.20241108" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user