Searched refs:GetSingleton (Results 1 – 8 of 8) sorted by relevance
37 return GetSingleton().RegisterFn(name, fn); in Register()44 static std::map<std::string, PybindDefineFunc> &AllFuncs() { return GetSingleton().fns_; } in AllFuncs()53 static PybindDefineRegister &GetSingleton();
21 PybindDefineRegister &PybindDefineRegister::GetSingleton() { in GetSingleton() function in mindspore::PybindDefineRegister
44 return GetSingleton().RegisterFn(name, priority, fn); in Register()52 return GetSingleton().module_fns_; in AllFunctions()61 static PybindDefinedFunctionRegister &GetSingleton();
22 PybindDefinedFunctionRegister &PybindDefinedFunctionRegister::GetSingleton() { in GetSingleton() function in mindspore::dataset::PybindDefinedFunctionRegister
286 T* GetSingleton() { in GetSingleton() function298 return GetSingleton<internal::RepeatedFieldPrimitiveAccessor<type> >(); in RepeatedFieldAccessor()312 return GetSingleton<internal::RepeatedPtrFieldStringAccessor>(); in RepeatedFieldAccessor()317 return GetSingleton<internal::MapFieldAccessor>(); in RepeatedFieldAccessor()319 return GetSingleton<internal::RepeatedPtrFieldMessageAccessor>(); in RepeatedFieldAccessor()
188 static void Reset() { GetSingleton().Clear(); } in Reset()191 MsProfile &ms_prof = GetSingleton(); in GetProfile()201 …static void StatTime(const std::string &id, double time) { GetSingleton().time_stat_[id] += time; } in StatTime()208 static MsProfile &GetSingleton() { in GetSingleton() function
349 const auto &stat = GetSingleton().time_stat_; in Print()
345 …static void RegisterOneOpConverter(OpNameInfo &&op_info) { GetSingleton().op_map_[op_info.op_type(… in RegisterOneOpConverter()349 static OpConvertRegistry &GetSingleton() { in GetSingleton() function in mindspore::OpConvertRegistry354 …static const std::unordered_map<std::string, OpNameInfo> &GetOpConvertMap() { return GetSingleton(… in GetOpConvertMap()474 OpConvertRegistry::GetSingleton().Clear(); in GetOnnxProtoString()