Home
last modified time | relevance | path

Searched refs:GetSingleton (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/pybind_api/
Dapi_register.h37 return GetSingleton().RegisterFn(name, fn); in Register()
44 static std::map<std::string, PybindDefineFunc> &AllFuncs() { return GetSingleton().fns_; } in AllFuncs()
53 static PybindDefineRegister &GetSingleton();
Dapi_register.cc21 PybindDefineRegister &PybindDefineRegister::GetSingleton() { in GetSingleton() function in mindspore::PybindDefineRegister
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/
Dpybind_register.h44 return GetSingleton().RegisterFn(name, priority, fn); in Register()
52 return GetSingleton().module_fns_; in AllFunctions()
61 static PybindDefinedFunctionRegister &GetSingleton();
Dpybind_register.cc22 PybindDefinedFunctionRegister &PybindDefinedFunctionRegister::GetSingleton() { in GetSingleton() function in mindspore::dataset::PybindDefinedFunctionRegister
/third_party/protobuf/src/google/protobuf/
Dmessage.cc286 T* GetSingleton() { in GetSingleton() function
298 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()
/third_party/mindspore/mindspore/core/utils/
Dprofile.h188 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
Dprofile.cc349 const auto &stat = GetSingleton().time_stat_; in Print()
/third_party/mindspore/mindspore/ccsrc/transform/express_ir/
Donnx_exporter.cc345 …static void RegisterOneOpConverter(OpNameInfo &&op_info) { GetSingleton().op_map_[op_info.op_type(… in RegisterOneOpConverter()
349 static OpConvertRegistry &GetSingleton() { in GetSingleton() function in mindspore::OpConvertRegistry
354 …static const std::unordered_map<std::string, OpNameInfo> &GetOpConvertMap() { return GetSingleton(… in GetOpConvertMap()
474 OpConvertRegistry::GetSingleton().Clear(); in GetOnnxProtoString()