fix exception message

This commit is contained in:
yuximiao 2020-09-17 20:51:49 +08:00
parent e6c738d3b6
commit 89e1c0e532
1 changed files with 1 additions and 1 deletions

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