Use extern template instantiation only for Clang (RTTI mess) (#5647)
* Remove extern template from headers for RTTI classes * Moove instantiation out of the namespace * Use __ANDROID__ conditional compilation for TBlob * One more attempt
This commit is contained in:
@@ -799,6 +799,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef __clang__
|
||||
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<int8_t>);
|
||||
@@ -813,6 +814,7 @@ extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<unsigned
|
||||
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<unsigned long long>);
|
||||
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<bool>);
|
||||
extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob<char>);
|
||||
#endif // __clang__
|
||||
|
||||
/**
|
||||
* @brief Creates a blob with the given tensor descriptor.
|
||||
|
||||
@@ -124,19 +124,19 @@ TBlob<T, U>::~TBlob() {
|
||||
free();
|
||||
}
|
||||
|
||||
template class TBlob<float>;
|
||||
template class TBlob<double>;
|
||||
template class TBlob<int8_t>;
|
||||
template class TBlob<uint8_t>;
|
||||
template class TBlob<int16_t>;
|
||||
template class TBlob<uint16_t>;
|
||||
template class TBlob<int32_t>;
|
||||
template class TBlob<uint32_t>;
|
||||
template class TBlob<long>;
|
||||
template class TBlob<long long>;
|
||||
template class TBlob<unsigned long>;
|
||||
template class TBlob<unsigned long long>;
|
||||
template class TBlob<bool>;
|
||||
template class TBlob<char>;
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<float>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<double>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<int8_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<uint8_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<int16_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<uint16_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<int32_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<uint32_t>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<long>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<long long>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<unsigned long>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<unsigned long long>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<bool>);
|
||||
template class INFERENCE_ENGINE_API_CLASS(TBlob<char>);
|
||||
|
||||
} // namespace InferenceEngine
|
||||
|
||||
Reference in New Issue
Block a user