Before, accessing the `op` attribute on the return value of AutoCastVariable.assign in Eager mode would raise an AttributeError instead of returning None. Accessing the `op` attribute on an AutoCastVariable itself (that is not the return value of `assign`) still raises an AttributeError, to be consistent with tf.Variable. Resolves https://github.com/tensorflow/tensorflow/issues/45536. PiperOrigin-RevId: 347524886 Change-Id: I663731c0ff4c557608eae352096a527e4dcabb18 |
||
---|---|---|
.. | ||
testdata | ||
__init__.py | ||
autocast_variable_test.py | ||
autocast_variable.py | ||
BUILD | ||
device_compatibility_check_test.py | ||
device_compatibility_check.py | ||
get_layer_policy_test.py | ||
get_layer_policy.py | ||
keras_test.py | ||
layer_correctness_test.py | ||
loss_scale_benchmark.py | ||
loss_scale_optimizer_test.py | ||
loss_scale_optimizer.py | ||
loss_scale.py | ||
mixed_precision_graph_rewrite_test.py | ||
policy_test.py | ||
policy.py | ||
test_util.py |