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

Uploaded Source

Built Distribution

dtorch-0.0.4-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dtorch-0.0.4.tar.gz
  • Upload date:
  • Size: 17.1 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.4.tar.gz
Algorithm Hash digest
SHA256 22ea0bc3cd37af2fad0f474c42a32ccf3605730aff95c790c9a4d11b9ca3a128
MD5 6def6d8fd5c1e9d9d026b99565d4bdcc
BLAKE2b-256 2e2af3e866b5b0e6acf2e467141fb8cc3f888bdbc6075bf6e2d180c92266a10c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: dtorch-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 985daa6196c8874a269b79f5c5f9a5e872279c714eb288781c0df579fe5a13b2
MD5 eb14c6f418833c4c5f0f295b03da4a1e
BLAKE2b-256 43d3ababef5a75afb87511c5056dae9eff17761447adde1f0a549a46f9ab2075

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