Change how TensorFlowOpLayer prevents sublayers from making Keras history.
Instead of marking input tensors as `_keras_history_checked`, create a call_context object to determine if we are in a sublayer. Only set `_keras_history_checked` for tensors that don't come from keras inputs. PiperOrigin-RevId: 233867280
Loading
Please sign in to comment