Export TBlob specialization for Windows (#15516)

* Export TBlob specialization for Windows

* Changed macro in define

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
Ilya Churaev 2023-02-07 22:11:49 +04:00 committed by GitHub
parent 180e77f047
commit 68ccd078dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -809,7 +809,7 @@ protected:
}; };
// These should not be exported for WIN32 to avoid usage of '_handle' and '_allocator' across CRT bounaries // These should not be exported for WIN32 to avoid usage of '_handle' and '_allocator' across CRT bounaries
#ifndef WIN32 #ifndef _WIN32
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<float>); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<float>);
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<double>); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<double>);
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<int8_t>); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<int8_t>);

View File

@ -85,7 +85,7 @@ Blob::Ptr make_shared_blob(const Blob::Ptr& inputBlob,
Blob::~Blob() {} Blob::~Blob() {}
MemoryBlob::~MemoryBlob() {} MemoryBlob::~MemoryBlob() {}
#ifndef WIN32 #ifndef _WIN32
template class TBlob<float>; template class TBlob<float>;
template class TBlob<double>; template class TBlob<double>;
template class TBlob<int8_t>; template class TBlob<int8_t>;