Skip to content

Commit

Permalink
Add convenience import (#51195)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #51195

Add kineto_available to torch.profiler

Test Plan:
>>> import torch.profiler
>>> torch.profiler.kineto_available()
True

Reviewed By: ngimel

Differential Revision: D26113906

Pulled By: ilia-cher

fbshipit-source-id: fe4502d29d10d8bd9459b0504aa0ee856af43acc
  • Loading branch information
Ilia Cherniavskii authored and facebook-github-bot committed Jan 28, 2021
1 parent ea0d304 commit d14d8c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch/profiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
'''

from .profiler import profile, schedule, ProfilerAction, ProfilerActivity
from torch.autograd import kineto_available

0 comments on commit d14d8c7

Please sign in to comment.