Browse Source

passing multiple callbacks as list

refactoring
sp 11 months ago
parent
commit
fd08a1f36e
  1. 2
      examples/shields/rl/15_train_eval_tune.py

2
examples/shields/rl/15_train_eval_tune.py

@ -78,7 +78,7 @@ def ppo(args):
"shielding": args.shielding is ShieldingConfig.Full or args.shielding is ShieldingConfig.Training,
},)
.framework("torch")
.callbacks(MyCallbacks, ShieldInfoCallback)
.callbacks([MyCallbacks, ShieldInfoCallback])
.evaluation(evaluation_config={
"evaluation_interval": 1,
"evaluation_duration": 10,

Loading…
Cancel
Save