Passing string value for custom profiler to the trainer. #16563
-
I have been working on a custom profiler installable package for which I want to pass string option to the trainer. However trainer has a check in _init_profiler that allows string values to only be one of "simple", "advanced", "pytorch", or "xla". Error: raise MisconfigurationException( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dear @assassin1991, Unfortunately, PyTorch Lightning doesn't support passing new profiler strings as those are already registered in the framework. Here are several options:
Best, |
Beta Was this translation helpful? Give feedback.
Dear @assassin1991,
Unfortunately, PyTorch Lightning doesn't support passing new profiler strings as those are already registered in the framework.
Here are several options:
name
, I believe it is possible for the Trainer to search all the available subclass of the BaseProfiler and perform automatic resolution of the Profiler class.Best,
…