Skip to content

This repo contains the code to benchmark and compare pytorch calcuation runs.

License

Notifications You must be signed in to change notification settings

zveroboy152/zbc-pytorch-benchmarker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch Benchmark

This script defines a simple convolutional neural network (ConvNet) in PyTorch, moves the model to the GPU, saves and loads the model, and runs a benchmark to measure the average elapsed time for running the model on the GPU.

Requirements

To run this script, you will need to have the following packages installed:

  • PyTorch: You can install PyTorch by following the instructions on the PyTorch website. Make sure to install the correct version for your system (e.g., CPU-only, CUDA-enabled).

  • tqdm: You can install tqdm by running pip install tqdm in your terminal.

Note: You may also need to have a CUDA-compatible GPU and the relevant drivers installed in order to run the script. If you do not have a CUDA GPU, you can still run the script by commenting out the lines that move the model and input data to the GPU.

Usage

To run the script, simply execute it in your terminal:

python pytorch_benchmark.py

About

This repo contains the code to benchmark and compare pytorch calcuation runs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages