In fusion also rename explicitly parameters like input_data_X_w to the new indices.
PiperOrigin-RevId: 243659452
This commit is contained in:
parent
72dd4cf622
commit
6763405490
@ -180,6 +180,11 @@ TransformResult FuseAutoInput::ApplyToNode(Node* node, GraphFloat32* graph) {
|
||||
}
|
||||
input_num++;
|
||||
}
|
||||
|
||||
// Also rename all _h and _w parameters to the new names.
|
||||
for (auto& param : attr.code.parameters) {
|
||||
param.name = absl::StrReplaceAll(param.name, replacements);
|
||||
}
|
||||
attr.code.source_code =
|
||||
absl::StrReplaceAll(attr.code.source_code, replacements);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user