DataSource.cpp 229 B

123456789
  1. #include "DataSource.h"
  2. std::shared_ptr<InferInfo> m_InferInfo = nullptr;
  3. std::shared_ptr<InferInfo> InferInfo::CreateNew()
  4. {
  5. if(m_InferInfo == nullptr) m_InferInfo = std::make_shared<InferInfo>();
  6. return m_InferInfo;
  7. }