Make hack in official/vision/detection models that enters the backend keras...
Make hack in official/vision/detection models that enters the backend keras graph stop happening once we enable the Functional API KerasTensors refactoring: As a workaround hack for the tf op layer conversion being fragile, the detection models have to explicitly enter the Keras backend graph. When we enable the KerasTensors refactoring of the Functional API internals, the op layer conversion will be much more reliable and this hack will not be necessary. In addition, the hack actually causes the models to break when we enable the refactoring (because it causes tensors to leak out of a graph). So, this CL changes the existing hack to stop applying once we've enabled the KerasTensors refactoring. PiperOrigin-RevId: 322229802
Showing
Please register or sign in to comment