PaddlePaddle / PaddlePaddle/FastDeploy

C#不能和DirectML一起编译

Open
#2,447 0 comments 0 reactions 1 assignee View on GitHub

@rainyfly is already working on this.

Since May 1, 2024.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

环境

  • 【编译命令】
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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.