// DGL C API common util functions #ifndef DGL_C_API_COMMON_H_ #define DGL_C_API_COMMON_H_ #include #include #include #include namespace dgl { // Graph handler type typedef void* GraphHandle; // Convert the given DLTensor to a temporary DLManagedTensor that does not own memory. DLManagedTensor* CreateTmpDLManagedTensor(const tvm::runtime::TVMArgValue& arg); // Convert a vector of NDArray to PackedFunc tvm::runtime::PackedFunc ConvertNDArrayVectorToPackedFunc(const std::vector& vec); } // namespace dgl #endif // DGL_C_API_COMMON_H_