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.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

fix_torch-0.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file fix_torch-0.0.2.tar.gz.

File metadata

  • Download URL: fix_torch-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for fix_torch-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6a5c6fb25786889cce3a59b7ba6c64fa017fd9071dfe9f89ac1cfc973dec0c8e
MD5 9f946c054cfea2d6b647552a2b83dcc5
BLAKE2b-256 e0abcd28046777dbbd62f30944a928a90a6cf06bcad8eff7860b0552c8a34129

See more details on using hashes here.

Provenance

File details

Details for the file fix_torch-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fix_torch-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for fix_torch-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe082d9d49fd4f223a9f266fa08491c91914610239c3b071e8293e6fbfb18e72
MD5 e9d5841a97bdbd7674cafb6d45991b9c
BLAKE2b-256 91c70e02c9a814e2698508bdecdfd5d5d7424bdde64ba12663e346b68bf28aa1

See more details on using hashes here.

Provenance

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