Skip to main content

A scientific package made a fellow student

Project description

DTorch

A direct link to the package : here

DTorch is a package made by a student at Epitech to improve his understanding of pytorch and better his knowledge of ia. It is built on top of numpy which is a scientific framework for math between matrices.

This project run on cpu but still have decent computation time making it usable for model building, optimization and saving/loading.

The tensors created can work with numpy but remember that the gradients will not be calculated if the operation are not in the range of control of the library. Therefore, a usage of the packages methods on the tensors if preferable.

Cuda support may appear in the future and similarly for the dkldnn library that seems to be an excellent when working on CPU.

A direct advantage of using dtorch is it's lightness. The package is currently close to 14 Ko and is fast to load in any project while the use of torch often lead to a slow start.

More about DTorch

The package is organised in the following manner :

Module Description
dtorch the base module where other are regrouped
functionnal a gather of all the functions that can be used on jtensors
jtensors a simple module containing the JTensors declaration
loss loss classes for model implementation
nn a neural network layer system and its multiple layers (see doc for more details).
einops a basic reproduction of some einops library methods that support autograd
optim A library contaning the optimizers that can be used on the networks parameters.

About Autograd

The implementation in this library may not be the most effective computationnaly but the goal was to make it simple and make it work effectively by relying on numpy matrices operations for computation speed concerns.

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

dtorch-0.0.5.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

dtorch-0.0.5-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file dtorch-0.0.5.tar.gz.

File metadata

  • Download URL: dtorch-0.0.5.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dtorch-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a01780e9fca0a9b90d4b22e37df5060e008ef3713621263913cbc316c33f0630
MD5 1cbf189961f6a565f617f3968fad3e33
BLAKE2b-256 1d5c05fcc1e4ec8e4b21176bb31f51c01dde00e6193396ddf209aacb4683f1a1

See more details on using hashes here.

Provenance

File details

Details for the file dtorch-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: dtorch-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dtorch-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 93577ec9828bc9be790f4e22c02cdf6ae1479483b9b2f55116b140f1e2d926e6
MD5 08656e573455a2790458471c708038ad
BLAKE2b-256 e9fc9efdd7b0134e1cedf17f40de1d95a62bbab3fc68b86d898b074b4ea8b73b

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