Skip to main content

A Library extending PyTorch for Personal Needs backed by C++/CUDA APIs

Project description

🔥 MyTorch 🔥

🐣 A Library extending PyTorch for Personal Needs backed by C++/CUDA APIs

🚧 WIP Forever 🚧

Installation 👨‍💻

I have not included any dependencies in the setup.py nor a requirements.txt as I leave the hassle of setting up GPU support for torch on your own. It should work on torch>=1.4 and CUDA>=10.0 but I frankly have no clue. I use torch==1.7.1 and CUDA Version of 11.2

To install it, just do

pip install git+https://github.com/Syzygianinfern0/MyTorch.git

Its also available on PyPi, but I wouldn't be very keen on maintaining it.

pip install python-mytorch==0.1

Documentation 📑

mytorch.ops

mytorch.ops.im2col and mytorch.ops.col2im

  • Rearrange image blocks into columns.
  • The representation is used to perform GEMM-based convolution.
  • Output is 5D (or 6D in case of minibatch) tensor.
  • Minibatch implementation is inefficient, and could be done in a single CUDA kernel.

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

python-mytorch-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

python_mytorch-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file python-mytorch-0.1.1.tar.gz.

File metadata

  • Download URL: python-mytorch-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for python-mytorch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9081203b234237758b41357667ff6bd4af3733239929030199152e39300c55d0
MD5 8eed15121d632d1f2c9911f0dbb5dd7c
BLAKE2b-256 3880df9c9a9858bb300917d4253e32d682a2ac92b71f327cb7d7f5f4c6d61fb2

See more details on using hashes here.

File details

Details for the file python_mytorch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: python_mytorch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for python_mytorch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0a3e3fc10df0b6715ee1419dd1858b14af70e1a4054e726d37489b946eda4d8
MD5 78ddfdaeb7f0bd51d5500e4ed3696cd6
BLAKE2b-256 2126ecc027f7d30ed941a6c6d3c9e6bcda1048ab5e263f1454d597e3445365f8

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