You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sequential model transformations are broken. Replacing
a pattern with replacement layers adds the replacement
layers to the wrong part of the model. This basically
ends up creating an incorrect model.
Adding a test to reproduce the error. The previous tests
were passing only because the model was solele composed
of matching layers. Further, `array.insert` in python
allows inserting into arbitrary index in an empty list.
This CL fixes the indexing bug. However, the replacement
code is quite complicated and should be simplified.
PiperOrigin-RevId: 313129431
Copy file name to clipboardExpand all lines: tensorflow_model_optimization/python/core/quantization/keras/graph_transformations/model_transformer_test.py
0 commit comments