#include "DataSource.h" std::shared_ptr<InferInfo> m_InferInfo = nullptr; std::shared_ptr<InferInfo> InferInfo::CreateNew() { if(m_InferInfo == nullptr) m_InferInfo = std::make_shared<InferInfo>(); return m_InferInfo; }