deprecations check for abs_loss function