mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-27 10:43:02 +08:00
6bad97351f
add dlpack
8 lines
166 B
C
8 lines
166 B
C
// Copyright by contributors
|
|
// This file is used to make sure the package is C compatible
|
|
#include <dlpack/dlpack.h>
|
|
|
|
int GetNDim(DLTensor *t) {
|
|
return t->ndim;
|
|
}
|