Skip to main content

Quality of life improvements for pytorch.

Project description

fix_torch

Quality of Life improvements for pytorch

Basically a combination of monkey-patches and additional functionality which is missing from pytorch. Use at your own peril :o

Examples

import fix_torch
import torch

x = torch.randn(13,127,12,3)
y = torch.randn(13,127,3,17)
v = torch.randn(8,4,4)

z = x@y # do bmm without torch being annoying about it
tr = torch.trace(v) # do trace on batched matrices

w = x.reshape(...,4,3,3)

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

fix_torch-0.0.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

fix_torch-0.0.3-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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