-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nor working #50
Comments
you need to import the function at first from pytorch_memlab import profile_every |
still does not produce any output:
output:
|
try: import torch
from pytorch_memlab import LineProfiler
from pytorch_memlab import profile_every
@profile_every(1)
def inner():
torch.nn.Linear(100, 100).cuda()
def outer():
linear = torch.nn.Linear(100, 100).cuda()
linear2 = torch.nn.Linear(100, 100).cuda()
inner()
outer() |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for me it does not work at all
I even tried your example code, without profiler does nothing, with profiler tag it does not compile, see bellow:
The text was updated successfully, but these errors were encountered: