add GradientError into __all__