Browse Source

fix exception message

tags/v1.0.0
yuximiao 5 years ago
parent
commit
89e1c0e532
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/profiler/profiling.py

+ 1
- 1
mindspore/profiler/profiling.py View File

@@ -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):


Loading…
Cancel
Save