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

Function New

oneflow/core/framework/consistency_check.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 return consistency;
70 }
71 static Maybe<FlatMetaInfoConsistency> New(const Symbol<ParallelDesc>& placement,
72 const Optional<Symbol<NdSbp>>& nd_sbp, const Optional<Symbol<NdSbp>>& grad_nd_sbp) {
73 const auto& consistency = std::make_shared<FlatMetaInfoConsistency>();
74 consistency->clear();
75 JUST(consistency->Init(placement, nd_sbp, grad_nd_sbp));
76 return consistency;
77 }
78
79 Maybe<void> Check(const Symbol<ParallelDesc>& placement,
80 const Optional<Symbol<NdSbp>>& nd_sbp, const Optional<Symbol<NdSbp>>& grad_nd_sbp) {

Callers 3

DataConsistencyCheckFunction · 0.70

Calls 2

clearMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected