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.
dtorchvision A lib containing visual datasets and models (pretrained too)
dtorchtext A lib containing textual datasets and models (pretrained too)

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

Uploaded Source

Built Distribution

dtorch-0.0.6-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dtorch-0.0.6.tar.gz
  • Upload date:
  • Size: 20.3 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.6.tar.gz
Algorithm Hash digest
SHA256 d6b0d4f3c7e0c2ccd0c58134c52cc44286dd4c1cc86049c61c974c3ec6bb0414
MD5 8ab9c18a86330b46445e1102de83ba9f
BLAKE2b-256 cd2215d2bbf1e55105984a729c143445d368144f0e1ca8f4601c48800d4baf36

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: dtorch-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d4cd5fa46017c3d4c76b74809a28ed682d78a2eb0fd7902411ffa030ceeae6c2
MD5 0b70f3dc50cd525b75417a7429482903
BLAKE2b-256 bf52d27463d5a5c17455892059326b47476a06bb81a7f7c3286305aff28f8c28

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