shared_ptr migrations

This commit is contained in:
Harshvardhan Chandirasekar
2021-03-17 22:26:26 +05:30
parent 6aa8666be5
commit 304ab49897
4 changed files with 25 additions and 6 deletions
+11
View File
@@ -110,6 +110,17 @@ double t_ns = time_ms.count();
FatalError(_error.str()); \
} \
}
struct InferDeleter
{
template <typename T>
void operator()(T* obj) const
{
if (obj)
{
obj->destroy();
}
}
};
typedef enum {
ERROR_CUDNN = 2,