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

Method IsTimeShapeIdentity

oneflow/core/graph/op_graph.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool OpNode::IsTimeShapeIdentity() const {
152 std::shared_ptr<const Shape> in_shape = CHECK_JUST(op().GetInputBlobFastestTimeShape());
153 if (!in_shape) { return true; }
154 std::shared_ptr<const Shape> op_shape = CHECK_JUST(op().GetOpTimeShape());
155 return *in_shape == *op_shape;
156}
157
158void OpNode::InitLbi2SourceNode() {
159 for (OpEdge* edge : in_edges()) {

Callers

nothing calls this directly

Calls 2

GetOpTimeShapeMethod · 0.80

Tested by

no test coverage detected