Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#不能和DirectML一起编译 #2447

Open
luckystar5408 opened this issue May 1, 2024 · 0 comments
Open

C#不能和DirectML一起编译 #2447

luckystar5408 opened this issue May 1, 2024 · 0 comments
Assignees

Comments

@luckystar5408
Copy link

环境

  • 【编译命令】
cmake .. -G "Visual Studio 17 2022" -A x64 ^
	 -DWITH_DIRECTML=ON ^
         -DENABLE_ORT_BACKEND=ON ^
         -DENABLE_VISION=ON ^
         -DWITH_CSHARPAPI=ON ^
         -DCMAKE_INSTALL_PREFIX="D:\Paddle\compiled_fastdeploy"
  • 【系统平台】: Windows x64(Windows11)
  • 【硬件】: Nvidia GTX 1650, CUDA 11.2 CUDNN 8.3
  • 【编译语言】: C++ / C#

问题

C#不能和DirectML一起编译
会出现以下报错:

D:\[Hided]\FastDeploy\csharp\fastdeploy\vision\detection\ppdet\model.cs
error CS024: The type or namespace name 'Mat' could not be found (are you missing a using directive or an assembly reference?
D:\[Hided]\FastDeploy\csharp\fastdeploy\vision\detection\contrib\model.cs
error CS024: The type or namespace name 'Mat' could not be found (are you missing a using directive or an assembly reference?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants