| 74 | namespace { |
| 75 | |
| 76 | Maybe<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 | |
| 84 | Maybe<void> CheckPhysicalBlobDesc( |
| 85 | const Operator& op, const PbRpf<std::string>& bns, |
no test coverage detected