MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / assert_is_ops

Method assert_is_ops

paddle/fluid/framework/ir/graph_pattern_detector.cc:599–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599PDNode *PDNode::assert_is_ops(const std::unordered_set<std::string> &op_types) {
600 asserts_.emplace_back([op_types](Node *x) {
601 return x && x->IsOp() && op_types.count(x->Op()->Type());
602 });
603 return this;
604}
605
606PDNode *PDNode::assert_is_ops_nth_input(
607 const std::unordered_set<std::string> &op_types,

Callers 15

operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80

Calls 5

emplace_backMethod · 0.45
IsOpMethod · 0.45
countMethod · 0.45
TypeMethod · 0.45
OpMethod · 0.45

Tested by

no test coverage detected