Browse Source

!6432 change exception message.

Merge pull request !6432 from yuximiao/master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
a32b6f8abf
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