fasterbench

A library for benchmarking AI models

Install

pip install fasterbench

How to use

from torchvision.models import resnet18

model = resnet18()
dummy_input = torch.randn(64, 3, 224, 224)

benchmark(model, dummy_input)