Fix issue where AutoCastVariables wouldn't cast in tf.functions.
I tried to fix this in 1ec90f6a, but it was rolled back in e737182e because it broke cases where one layer tried accessed another layer's variables when AutoCastVariables were used, such as in RNNs. This is a much simpler fix. I added RNN mixed precision tests, because RNNs use tf.functions, which did not work with mixed precision before this change. PiperOrigin-RevId: 257684192
Showing
想要评论请 注册 或 登录