Skip to content

Commit fee8497

Browse files
Update README
1 parent 16ca379 commit fee8497

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,16 @@ results = benchmark(model, sample, num_runs=100)
247247
```
248248
</details>
249249

250-
## Limitations
251-
Usage assumptions:
252-
- The model has as a `__call__` method that takes the sample, i.e. `model(sample)`.
253-
- The Model works for any batch size (first dimension).
250+
... Your turn
251+
252+
## Advanced use
253+
Trying to benchmark a custom class, which is not a `torch.nn.Module`?
254+
- You can pass custom functions to `benchmark` as seen in [this example](tests/test_custom_class.py).
254255

255-
Feature limitations:
256+
## Limitations
256257
- Allocated memory measurements are only available on CUDA devices.
257258
- Energy consumption can only be measured on NVIDIA Jetson platforms at the moment.
259+
- FLOPs and parameters count is not support for custom classes.
258260

259261

260262
## Citation

0 commit comments

Comments
 (0)