Skip to content

Commit 2832b7d

Browse files
authored
[Cherry pick] Fix Dy2St Issue When Running PaddleVideo (#3430)
* Global.to_static -> to_static (#3397) * Global.to_static -> to_static (#3423)
1 parent c46009a commit 2832b7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddlex/repo_apis/PaddleVideo_api/video_cls/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _update_to_static(self, dy2st: bool):
295295
Args:
296296
dy2st (bool): whether or not to use the dynamic to static mode.
297297
"""
298-
self.update({"Global.to_static": dy2st})
298+
self.update({"to_static": dy2st})
299299

300300
def _update_use_vdl(self, use_vdl: bool):
301301
"""update config to set VisualDL

paddlex/repo_apis/PaddleVideo_api/video_det/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _update_to_static(self, dy2st: bool):
295295
Args:
296296
dy2st (bool): whether or not to use the dynamic to static mode.
297297
"""
298-
self.update({"Global.to_static": dy2st})
298+
self.update({"to_static": dy2st})
299299

300300
def _update_use_vdl(self, use_vdl: bool):
301301
"""update config to set VisualDL

0 commit comments

Comments
 (0)