forked from huawei/mindspore2022
fix exception message
This commit is contained in:
parent
e6c738d3b6
commit
89e1c0e532
|
|
@ -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…
Reference in New Issue