Allow Trainer to accept dictionary as input?
I searched issues and the forum but couldn't find anyone who mentioned this, so here I'm asking: can we allow Trainer to accept dictionaries as an input argument?
This came up as I'm writing a script to run experiments under various configurations. For each experiment, I'm passing a configuration file (in JSON) into an experiment runner which builds callbacks, Trainer, and models internally. At the moment, I'm doing something that looks like:
trainer = pl.Trainer(
                gpus                = config.trainer.gpus,
                auto_select_gpus    = config.trainer.auto_select_gpus,
                precision           = config.trainer.precision,
                deterministic       = config.trainer.deterministic,
                max_epochs          = config.trainer.max_epochs,
                auto_lr_find        = config.trainer.auto_lr_find,
                gradient_clip_val   = config.trainer.gradient_clip_val,
                logger              = logger,
                callbacks           = callbacks,
            )

However, I would like to be able to do:
trainer = pl.Trainer(config.trainer)

I think running experiments would be so much more flexible this way unless there is a technical reason that prevents this from happening.