Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
UltralyticsAssistant committed Jul 5, 2024
1 parent d3aea92 commit e8a7127
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/evaluate_famous_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import torch
from thop.profile import profile
from torchvision import models

from thop.profile import profile

model_names = sorted(
name
for name in models.__dict__
Expand Down
1 change: 1 addition & 0 deletions benchmark/evaluate_rnn_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import torch
import torch.nn as nn

from thop.profile import profile

input_size = 160
Expand Down
1 change: 1 addition & 0 deletions tests/test_conv2d.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import torch
import torch.nn as nn

from thop import profile


Expand Down
1 change: 1 addition & 0 deletions tests/test_matmul.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import torch
import torch.nn as nn

from thop import profile


Expand Down
1 change: 1 addition & 0 deletions tests/test_relu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import torch
import torch.nn as nn

from thop import profile


Expand Down

0 comments on commit e8a7127

Please sign in to comment.