Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ The following example shows how to profile AlexNet using the Flops Profiler.
```python
import torchvision.models as models
import torch
from flops_profiler import get_model_profile
from flops_profiler.profiler import get_model_profile

with torch.cuda.device(0):
model = models.alexnet()
Expand Down Expand Up @@ -234,7 +234,7 @@ The `FlopsProfiler`class provides the following methods:
Below is an example of this usage in a typical training workflow.

```python
from flops_profiler import FlopsProfiler
from flops_profiler.profiler import FlopsProfiler

model = Model()
prof = FlopsProfiler(model, ds_engine if ds_engine else None)
Expand Down