Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DeepOps

A Mini Deep learning library, accelerated on GPUs with PyCuda.

No no no.. I havent wrote this library on tensorflow or torch, it is a standalone machine. :P

Implemented backpropogations using reverse traversal, Support gradients and GPU operations, You can make a mini neural network (FNN) and use the in-house optimizer to train it on a dataset (e.g MNIST).

Tip: always give your tensor a funny name! :)

Note: Only for Educational Usage.

alt text

Installation.

pip install deepops

Tensor.

a = Tensor([1,2,3,4,5])
# deepop tensor 

Attach to a cuda device.

a = Tensor([1,2,3,4,5])
a.device("gpu:0") # attach to gpu device.

Check the Device.

a.where
# 'cpu'

Addition.

a = Tensor([1.0,2.0])
print(a + a)
# GPU Operation

Multiplication.

a = Tensor([1.0, 2.0])
print(a.mul(a))
print(a * a)

Calculate Gradients.

Tensor = dp.Tensor
a1 = Tensor([1.0, 3.0, 1.0])
b1 = Tensor([7.0, 3.0, 5.0])

a2 = Tensor([4.0, 3.0, 1.0])
a3 = Tensor([3.0, 3.0, 1.0])
a4 = Tensor([7.0, 1.0, 6.0])
b2 = Tensor([1.0, 21.0, 12.0])

c = a1 * b1 + a3
d = a2 * b2 + a4
out = c * d

# backward
out.backward()

print(out.grad)
print(a1.grad)

Run Tests.

python -m pytest -s

Contribution is highly appreciated.

Please contribute to my work.

TODOs

  • write more tests...
  • need a optimizer.
  • support more operations.

License

MIT

Metadata

Release files for deepop 0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepop 0.1.dev0
File Size Uploaded Provenance Actions
deepop-0.1.dev0.tar.gz 6.5 kB Without provenance Details for deepop-0.1.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepop 0.1.dev0
File Interpreter ABI Platform Actions
deepop-0.1.dev0-py3-none-any.whl Python 3 none any Details for deepop-0.1.dev0-py3-none-any.whl

Total release size: 15.0 kB

Release files / deepop-0.1.dev0.tar.gz

Download URL deepop-0.1.dev0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8ed71938683ef1b31b623dbf9f06453d87de07e6350a4bcaca0a76830cfe358a
BLAKE2b-256 checksum
How to use checksums
3b547dd59518ad5c9894d1fa1d09d51a0da78462111234cd974a8b6e6bb49855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / deepop-0.1.dev0-py3-none-any.whl

Download URL deepop-0.1.dev0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4109bbcd0b3101c4ad3679ed676596b68c7750ac2a073b8f1b1110e2548b90de
BLAKE2b-256 checksum
How to use checksums
3710e8a6b38979526b8ae3e761f77dce2adcb47fe2946df1d9c3cf68ad8a1e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Security for deepop 0.1.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page