Skip to content
Discussion options

You must be logged in to vote

The syntax is described in https://pytorch-lightning.readthedocs.io/en/stable/cli/lightning_cli_advanced_3.html#trainer-callbacks-and-arguments-with-class-type. As command line arguments would be:

$ python ... \
    --trainer.callbacks+=BasePredictionWriter \
    --trainer.callbacks.write_interval=batch \
    ...

Or in a config file:

trainer:
  callbacks:
    - class_path: BasePredictionWriter
      init_args:
        write_interval: batch

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cgoliver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment