Files
FastDeploy/third_party/dlpack/contrib/mock_c.c
heliqi 6bad97351f [Other]Add dlpack (#556)
add dlpack
2022-11-10 16:00:08 +08:00

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;
}