Open para-zhou opened 1 year ago
Hello, the question has been received. We will analyze and reply as soon as possible. Please wait patiently.
mindspore not support use log in construct function during graph mode. if you want debug, you can run it in pynative mode.
Environment
Hardware Environment(
Ascend
/GPU
/CPU
):Software Environment:
Describe the current behavior
Added logger in a construct function, can get above error
Fixed by adding
return 0
to the log.py Then I gotRuntimeError: mindspore/ccsrc/pipeline/jit/parse/parse.cc:584 ParseStatement] Unsupported statement 'Try'.
And it turns out that there's
try
in the log.py file. So how should I print the variables in the construct function to check if my modification works well?? Thanks.