-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked on
Description
🚀 Feature
Currently, the profile argument of the Trainer is bool. It should be Union[bool, str].
Motivation
It would avoid having to set the profiler manually by creating and passing the object to the Trainer.
It is also the way auto_scale_batch_size and auto_lr_find work.
Pitch
# equivalent to --profiler true
trainer = Trainer(profiler=True)
# equivalent to --profiler simple
trainer = Trainer(profiler=SimpleProfiler())
# equivalent to --profiler advanced
trainer = Trainer(profiler=AdvancedProfiler())
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked on