def update_moving_average(self):
    assert (self.target_encoder is not None), 'target encoder has not been created yet'
    update_moving_average(self.target_ema_updater, self.target_encoder, self.online_encoder)
def update_moving_average(self):
    assert (self.target_encoder is not None), 'target encoder has not been created yet'
    update_moving_average(self.target_ema_updater, self.target_encoder, self.online_encoder)