shared_ptr migrations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user