Skip to content

Commit 2ece448

Browse files
committed
fix
1 parent 7cf8337 commit 2ece448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/profiler/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def warpper(*args, **kwargs):
173173

174174
return warpper
175175

176+
global _has_optimizer_wrapped
176177
if _has_optimizer_wrapped == True:
177178
return
178179
import paddle.optimizer as optimizer

0 commit comments

Comments
 (0)