Skip to content

Commit 7014a0e

Browse files
fix
1 parent 848f2bf commit 7014a0e

File tree

3 files changed

+1
-384
lines changed

3 files changed

+1
-384
lines changed

examples/cylinder/3d_unsteady_discrete/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/cylinder/3d_unsteady_discrete/cylinder3d_unsteady.py

Lines changed: 0 additions & 366 deletions
This file was deleted.

ppsci/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def function_with_eval_state(self, *args, **kwargs):
255255
self.model.eval()
256256

257257
# run func in eval mode
258-
func()
258+
func(self, *args, **kwargs)
259259

260260
# restore state
261261
if train_state:

0 commit comments

Comments
 (0)