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

Function GetDefiningOpForInput

paddle/fluid/pir/utils/general_functions.cc:221–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221Operation* GetDefiningOpForInput(const Operation* op, uint32_t index) {
222 PADDLE_ENFORCE_EQ(
223 index < op->num_operands() && op->operand_source(index),
224 true,
225 common::errors::InvalidArgument("Input operand's index must be valid."));
226 return op->operand_source(index).defining_op();
227}
228
229std::vector<std::pair<Operation*, int32_t>> GetUseOpsForOutput(
230 const Operation* op, uint32_t index) {

Callers 15

MatchAndRewriteMethod · 0.85
IsValidOpMethod · 0.85
MatchAndRewriteMethod · 0.85
UpdateOpPrecisionMethod · 0.85
MatchMethod · 0.85
MatchMethod · 0.85
MatchAndRewriteMethod · 0.85
MatchAndRewriteMethod · 0.85
MatchAndRewriteMethod · 0.85
MatchAndRewriteMethod · 0.85
MatchAndRewriteMethod · 0.85

Calls 3

defining_opMethod · 0.80
num_operandsMethod · 0.45
operand_sourceMethod · 0.45

Tested by 5

MatchAndRewriteMethod · 0.68
MatchAndRewriteMethod · 0.68
MatchAndRewriteMethod · 0.68
MatchAndRewriteMethod · 0.68
MatchAndRewriteMethod · 0.68