Commit 4bf9cb55 authored by Alexander Alekhin's avatar Alexander Alekhin

dnn: fix 'log1p' re-definition in THGeneral

parent 62cc8d86
#if defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER
#include "THGeneral.h"
#include <opencv2/core.hpp>
extern "C"
{
#ifndef TH_HAVE_THREAD
#define __thread
#endif
#if defined(TH_DISABLE_HEAP_TRACKING)
#elif (defined(__unix) || defined(_WIN32))
#include <malloc.h>
......@@ -16,6 +8,15 @@ extern "C"
#include <malloc/malloc.h>
#endif
#include "THGeneral.h"
extern "C"
{
#ifndef TH_HAVE_THREAD
#define __thread
#endif
/* Torch Error Handling */
static void defaultTorchErrorHandlerFunction(const char *msg, void*)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment