Revert "gradclipcost"

This reverts commit 01b83ae6e25a3d0d9034de810d136e2bf0f19c27.