From 89e1c0e5328f83634eeefbb40cdb1e3727aa4beb Mon Sep 17 00:00:00 2001 From: yuximiao Date: Thu, 17 Sep 2020 20:51:49 +0800 Subject: [PATCH] fix exception message --- mindspore/profiler/profiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):