Add Lightning-like Profiler to Keras #19023
Labels
stat:contributions welcome
A pull request to fix this issue would be welcome.
type:feature
The user is asking for a new feature.
Reopening from here.
Describe the feature and the current behavior/state
In PyTorch-Lightning, you can identify bottlenecks in your code using Profiler API. And I've found it super useful and easy to inspect the pros and cons of the code. This API offers 3 type of inferface, namely
simple
,advance
andpytorch
. I mostly usesimple
that summarize the execution time of medium to high level training + validation + inference API. The saved log files look something as follows.I don't know, in
keras
, if we have anything like this already. By having such high-level functionality inkeras
would really great. It will help to inspect the bottleneck of dataloader, model, callbacks etc, by reporting the time and memory consumption in the system.I looked for it before, discussion.
Will this change the current api? How?
This can be considered as a Callback, I think.
Who will benefit from this feature?
The keras community. Engineers and researchers, both. Mostly engineers in production phase for code optimization.
Contributing
The text was updated successfully, but these errors were encountered: