We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b5091 commit 254c2d3Copy full SHA for 254c2d3
ppsci/solver/visu.py
@@ -59,7 +59,7 @@ def visualize_func(solver, epoch_id: int):
59
evaluator.add_target_expr(output_expr, output_key)
60
61
# forward
62
- with solver.autocast_context_manager():
+ with solver.autocast_context_manager(), solver.no_grad_context_manager():
63
batch_output_dict = evaluator(batch_input_dict)
64
65
# collect batch data
0 commit comments