MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReplaceOperandWith

Method ReplaceOperandWith

tensorflow/compiler/xla/service/hlo_instruction.cc:2139–2147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2137}
2138
2139Status HloInstruction::ReplaceOperandWith(int64 operand_num,
2140 HloInstruction* new_operand) {
2141 auto old_operand = operand(operand_num);
2142 TF_RET_CHECK(ShapeUtil::CompatibleIgnoringFpPrecision(old_operand->shape(),
2143 new_operand->shape()))
2144 << old_operand->shape() << " is not compatible with "
2145 << new_operand->shape();
2146 return ReplaceOperandWithDifferentShape(operand_num, new_operand);
2147}
2148
2149Status HloInstruction::ReplaceOperandWithDifferentShape(
2150 int64 operand_num, HloInstruction* new_operand) {

Callers 15

TEST_FFunction · 0.80
AddCopyForOperandMethod · 0.80
CloneAndFuseInternalMethod · 0.80
FoldOperandConversionMethod · 0.80
RunMethod · 0.80
TEST_FFunction · 0.80
RunWhileDCEFunction · 0.80

Calls 1

shapeMethod · 0.45

Tested by 4

TEST_FFunction · 0.64
TEST_FFunction · 0.64
RunTest2DMethod · 0.64
RunTest1DMethod · 0.64