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

Method Containing

oneflow/core/common/shape.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template<class T>
49bool ConstShapeMixIn<T>::Containing(ShapeView small_shape) const {
50 if (tp()->NumAxes() < small_shape.NumAxes()) { return false; }
51 FOR_RANGE(int, i, 0, small_shape.NumAxes()) {
52 if (tp()->At(i) != small_shape.At(i)) { return false; }
53 }
54 return true;
55}
56
57template<class T>
58bool ConstShapeMixIn<T>::MatchBeforeLastDim(ShapeView next_shape) const {

Callers 4

GetMappedParallelIdFunction · 0.45
CalBroadcastRootFunction · 0.45
FOR_RANGEMethod · 0.45

Calls 1

NumAxesMethod · 0.45

Tested by

no test coverage detected