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.2
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 "git+https://github.com/Dristro/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.2.tar.gz (7.5 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: puretorch-0.1.2.tar.gz
  • Upload date:
  • Size: 7.5 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.2.tar.gz
Algorithm Hash digest
SHA256 73f3ff3754888339ea8f81a1b9768d6a3ef69d19b029bd342897460d153c1192
MD5 8dd186312095055bec2fc619cb03634c
BLAKE2b-256 c99f4ce0fff186d1e1563a32d0813fa98520917743bd9d7a8bf12ad5dc61b9f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PureTorch-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 395741cab88f8f7e3a2a8851da422f8deeaaf193251950bdc9782f27c9177370
MD5 0b39c876ab2e23c6ee17d7d5a836b95f
BLAKE2b-256 a355cb5046ae0a0010bddcf8ddbcb42ab990868b3efde4d07400acbb1871cef9

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