Actually there is no need to copy over the backend config at the Hlo level
This commit is contained in:
parent
e65f01242b
commit
4db6d9a5f0
@ -837,10 +837,6 @@ Status HloComputation::ReplaceInstruction(HloInstruction* old_instruction,
|
|||||||
if (new_instruction->metadata().op_name().empty()) {
|
if (new_instruction->metadata().op_name().empty()) {
|
||||||
new_instruction->set_metadata(old_instruction->metadata());
|
new_instruction->set_metadata(old_instruction->metadata());
|
||||||
}
|
}
|
||||||
if (new_instruction->raw_backend_config_string().empty()) {
|
|
||||||
new_instruction->set_raw_backend_config_string(
|
|
||||||
old_instruction->raw_backend_config_string());
|
|
||||||
}
|
|
||||||
if (new_instruction->frontend_attributes().map().empty()) {
|
if (new_instruction->frontend_attributes().map().empty()) {
|
||||||
new_instruction->set_frontend_attributes(
|
new_instruction->set_frontend_attributes(
|
||||||
old_instruction->frontend_attributes());
|
old_instruction->frontend_attributes());
|
||||||
|
Loading…
Reference in New Issue
Block a user