Skip to main content

Record execution graphs of PyTorch neural networks

Project description

torchrecorder

A small package to record execution graphs of neural networks in PyTorch. The package uses hooks and the grad_fn attribute to record information.
This can be used to generate visualizations at different scope depths.

Licensed under MIT License. View documentation at https://torchrecorder.readthedocs.io/

Installation

Requirements:

Install this package:

$ pip install torchrecorder

Acknowledgements

This is inspired from szagoruyko/pytorchviz. This package differs from pytorchviz as it provides rendering at multiple depths.

Note that for rendering a network during training, you can use TensorBoard and torch.utils.tensorboard.SummaryWriter.add_graph, which records and renders to a protobuf in a single step. The intended usage of torchrecorder is for presentation purposes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchrecorder-1.0.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

torchrecorder-1.0.3-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file torchrecorder-1.0.3.tar.gz.

File metadata

  • Download URL: torchrecorder-1.0.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for torchrecorder-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2a207548eaa778b8918bfcfa7ac655de37ac608523ca5c36e6175388c46e4da2
MD5 7ea82c8cefd83978e795d03ad30b8bd8
BLAKE2b-256 563427b9350904797351f607ef74600353007545ee7069c3637351031b1c6cb7

See more details on using hashes here.

File details

Details for the file torchrecorder-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for torchrecorder-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 537ef5b32476756a06446a205d73a4a6d8d164d2101ce87891875f989e9c3311
MD5 b754d7f0b9f9378b9cb16db1c70681e7
BLAKE2b-256 37a6ade2011ad5debc5afef7339bb5057140b2440bfdcd346f8188f7c5cc32e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page