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

Method GetParallelDescSymbol

oneflow/core/framework/instructions_builder.cpp:219–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219Maybe<ParallelDesc> InstructionsBuilder::GetParallelDescSymbol(const ParallelConf& parallel_conf) {
220 return Singleton<symbol::Storage<ParallelDesc>>::Get()->FindOrCreate(parallel_conf, &NewSymbolId);
221}
222
223Maybe<Scope> InstructionsBuilder::GetScopeSymbol(const ScopeProto& scope_proto) {
224 return Singleton<symbol::Storage<Scope>>::Get()->FindOrCreate(scope_proto, &NewSymbolId);

Callers 5

GetItemInScalarTensorFunction · 0.80
NewMethod · 0.80
CreateParallelDescMethod · 0.80

Calls 2

GetFunction · 0.85
FindOrCreateMethod · 0.80

Tested by

no test coverage detected