Skip to main content

A PyTorch-like library built from scratch

Project description


Table of contents

Title Desc
Version Current version and features
Purpose What and why of this repo
Structure File structure of various modules
Upcoming features Features that im working on
Setup How to setup locally

Version info

Current version - 0.1.3
New features - new Flatten layer added inside PureTorch.layers

Runs on CPU only. Might add GPU support later.


Purpose

Raw implementation of PyTorch using NumPy. The structure and essence of torch remains the same, but its fully implemented using NumPy.


Structure

Current file structure:

  • PureTorch
    • activations
      • ReLU
      • Softmax
      • Tanh
    • layers
      • Sequential
      • Linear
      • Flatten
    • loss
      • CrossEntropyLoss
      • SparseCrossEntropyLoss

Will be adding other layers, activations, losses, optimizers.
As of now, the default optimizer is SGD.
To check the "development code" check the "dev" branch


Upcoming features

These are the features that im working on, and will soon be a part of PureTorch.

  • Convolutional layer(s)
    • 2D first, then 1D and multi-dim

Setup

Install git before running this command in your env, then run:

pip install PureTorch

Run: (to verify the installation in python)

import PureTorch
print(PureTorch.__version__)

or: (to verify the installation on the terminal)

python3 -c "import PureTorch; print(PureTorch.__version__)"

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

puretorch-0.1.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PureTorch-0.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file puretorch-0.1.3.tar.gz.

File metadata

  • Download URL: puretorch-0.1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for puretorch-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1f6ac43091b5e8f71eea2e8f9b049d0fa2ac22b8baa47588e6ae63845a78d77e
MD5 edb1cbc4bd7671929bebfd44ce0dc6a0
BLAKE2b-256 ef4cf2639132bcf7518a4655232ed27aafa63d2493d9fac43803e591d67a8746

See more details on using hashes here.

File details

Details for the file PureTorch-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: PureTorch-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for PureTorch-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c5595b8a0eff7993e4ec9ab744c43e45a656f3abcb6c6586e48f26626cea33
MD5 0c73a654bd62027826558e0722d98daa
BLAKE2b-256 f03848adb99b1c67ee454eec7c9dcc6393f7181189626b95ff24d8fe033c7f67

See more details on using hashes here.

Supported by

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