keras/src/backend/tensorflow/core.py/Variable/_copy_trackable_to_cpu
class Variable:    def _copy_trackable_to_cpu(self, object_map):
        self.value._copy_trackable_to_cpu(object_map)
        object_map[self] = tf.Variable(object_map[self.value])