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

Method ReplaceUseWith

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

Source from the content-addressed store, hash-verified

2108}
2109
2110Status HloInstruction::ReplaceUseWith(HloInstruction* user,
2111 HloInstruction* new_producer) {
2112 TF_RET_CHECK(
2113 ShapeUtil::CompatibleIgnoringFpPrecision(shape(), new_producer->shape()))
2114 << "this shape: " << ShapeUtil::HumanString(shape())
2115 << ", replacement shape: "
2116 << ShapeUtil::HumanString(new_producer->shape());
2117 return ReplaceUseWithDifferentShape(user, new_producer);
2118}
2119
2120Status HloInstruction::ReplaceUseWithDifferentShape(
2121 HloInstruction* user, HloInstruction* new_producer) {

Callers 15

RunMethod · 0.80
CompressInstructionFunction · 0.80
HandleMultipleOutputsMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
RewriteGraphMethod · 0.80
RewriteDynamicConcatFunction · 0.80
RewriteDynamicSortFunction · 0.80

Calls 2

shapeFunction · 0.50
shapeMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64