diff --git a/mindspore/profiler/profiling.py b/mindspore/profiler/profiling.py index 361c1b9210..f69ebed5eb 100644 --- a/mindspore/profiler/profiling.py +++ b/mindspore/profiler/profiling.py @@ -460,7 +460,7 @@ class Profiler: """ result = dict() if not profile_option: - raise ValueError("Please call a profile function.") + raise ValueError("The parameter profile_option must pass a value using ProfileOption.") if profile_option == ProfileOption.trainable_parameters: if not isinstance(network, Cell):