Skip to content

Commit

Permalink
Allow setting operand_shapes_with_layout on custom call instruction.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623055564
  • Loading branch information
Tongfei-Guo authored and tensorflower-gardener committed May 8, 2024
1 parent cfb58b9 commit 5fa4d07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions third_party/xla/xla/hlo/ir/hlo_instructions.h
Expand Up @@ -2094,6 +2094,11 @@ class HloCustomCallInstruction : public HloCallableInstruction {
CHECK(layout_constrained());
return operand_shapes_with_layout_;
}
void set_operand_shapes_with_layout(
std::vector<Shape> operand_shapes_with_layout) {
CHECK(layout_constrained());
operand_shapes_with_layout_ = std::move(operand_shapes_with_layout);
}
void set_custom_call_schedule(CustomCallSchedule custom_call_schedule) {
custom_call_schedule_ = custom_call_schedule;
}
Expand Down

0 comments on commit 5fa4d07

Please sign in to comment.