MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetScopeSymbol

Method GetScopeSymbol

oneflow/core/framework/instructions_builder.cpp:223–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223Maybe<Scope> InstructionsBuilder::GetScopeSymbol(const ScopeProto& scope_proto) {
224 return Singleton<symbol::Storage<Scope>>::Get()->FindOrCreate(scope_proto, &NewSymbolId);
225}
226
227Maybe<OperatorConfSymbol> InstructionsBuilder::GetOpConfSymbol(const OperatorConf& op_conf) {
228 return Singleton<symbol::Storage<OperatorConfSymbol>>::Get()->FindOrCreate(op_conf, &NewSymbolId);

Callers 3

WithCalculationPassScopeFunction · 0.80
NewScopeSymbolIdFunction · 0.80

Calls 2

GetFunction · 0.85
FindOrCreateMethod · 0.80

Tested by

no test coverage detected