In fusion also rename explicitly parameters like input_data_X_w to the new indices.

PiperOrigin-RevId: 243659452
This commit is contained in:
A. Unique TensorFlower 2019-04-15 11:52:11 -07:00 committed by TensorFlower Gardener
parent 72dd4cf622
commit 6763405490

View File

@ -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);