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

Function CheckPhysicalBlobDesc

oneflow/core/graph/exec_graph.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74namespace {
75
76Maybe<void> CheckPhysicalBlobDesc(const BlobDesc& logical, const NdSbp& nd_sbp,
77 const ParallelDesc& parallel_desc,
78 const ParallelContext* parallel_ctx, const BlobDesc& physical) {
79 CHECK_EQ_OR_RETURN(physical.shape(), *JUST(GetPhysicalShape(logical.shape(), nd_sbp,
80 parallel_desc, *parallel_ctx)));
81 return Maybe<void>::Ok();
82}
83
84Maybe<void> CheckPhysicalBlobDesc(
85 const Operator& op, const PbRpf<std::string>& bns,

Callers 2

InferBlobDescsByNdSbpMethod · 0.85

Calls 6

GetLogicalBlobDescFunction · 0.85
GetOpParallelDescMethod · 0.80
GetPhysicalShapeFunction · 0.50
shapeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected