A lightweight deep learning framework
Reason this release was yanked:
The wheels for Windows & Linux is not available.
Project description
JetDL
JetDL is a deep learning library built from scratch in C++ with a Python interface designed to be familiar to PyTorch users.
Installation
To install the library and its dependencies, run the following command in your terminal:
pip install jetdl
Usage
Here are some examples of how to use JetDL for basic tensor operations and for building and training a simple neural network.
Tensor Initialization
You can initialize tensors in various ways:
import jetdl
# Create a tensor from a list
a = jetdl.tensor([[1, 2], [3, 4]])
print(a)
# Create a tensor of zeros
b = jetdl.zeros((2, 3))
print(b)
# Create a tensor of ones
c = jetdl.ones((3, 2))
print(c)
# Create a tensor of random values
d = jetdl.rand(2, 4)
print(d)
Tensor Arithmetic
JetDL supports common arithmetic operations, which are performed element-wise.
import jetdl
a = jetdl.tensor([[1, 2], [3, 4]])
b = jetdl.tensor([[5, 6], [7, 8]])
# Addition
c = a + b
print(c)
# Subtraction
d = a - b
print(d)
# Element-wise multiplication
e = a * b
print(e)
# Element-wise division
f = a / b
print(f)
Tensor Matrix Multiplication
You can perform matrix multiplication using jetdl.matmul.
import jetdl
# Create two tensors with compatible shapes for matrix multiplication
a = jetdl.tensor([[1, 2], [3, 4]])
b = jetdl.tensor([[5, 6], [7, 8]])
# Perform matrix multiplication
c = a @ b
print(c)
print(c.shape)
Training a Neural Network
Here is an example of how to define a simple neural network with a Linear and a ReLU layer and train it on random data.
import jetdl
import jetdl.nn as nn
# 1. Define the model
class SimpleNet(nn.Module):
def __init__(self):
super().__init__()
self.layer1 = nn.Linear(10, 20)
self.relu = nn.ReLU()
def forward(self, x):
x = self.layer1(x)
x = self.relu(x)
return x
model = SimpleNet()
# 2. Create dummy data
X_train = jetdl.rand(100, 10)
y_train = jetdl.rand(100, 20)
# 3. Define loss and optimizer
criterion = nn.MSELoss()
optimizer = jetdl.optim.SGD(model.parameters(), lr=0.01)
# 4. Training loop
for epoch in range(100):
# Forward pass
outputs = model(X_train)
loss = criterion(outputs, y_train)
# Backward pass and optimization
loss.backward()
optimizer.step()
optimizer.zero_grad()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jetdl-0.9.0.tar.gz.
File metadata
- Download URL: jetdl-0.9.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2cb6ddb2e17590fe8b51ab687410beac6fd7108f73cae874f75025f1eaf04d
|
|
| MD5 |
70b9346a68cd9b4b302fd491c870ea83
|
|
| BLAKE2b-256 |
8deab8b5039f6fd1bc7fe19a2836cd069465725a84eae72e8757076efab357fd
|
File details
Details for the file jetdl-0.9.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 328.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6dd1112f0ade022e62ba175b3fa1204a9ed1efc9c6b5414918bc62ada77613
|
|
| MD5 |
bd7087565a7712ebd0bc4173be4cff94
|
|
| BLAKE2b-256 |
8726648316c5c74ab3ed051226bbb36838486ea3f1df8f511b173f32057f5f23
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp312-cp312-win_amd64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp312-cp312-win_amd64.whl -
Subject digest:
6b6dd1112f0ade022e62ba175b3fa1204a9ed1efc9c6b5414918bc62ada77613 - Sigstore transparency entry: 698239104
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jetdl-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdcb3f03f3d153f3b615082c1e46aa087ba238ee01ab26381563f997d2a97841
|
|
| MD5 |
bf9487f0cfddefaa9bb3809efd2a5c34
|
|
| BLAKE2b-256 |
a6c31d49a55c2b4f10e714a480fa4ae29a57a2c0a70d0bdd8f0c3723d82b3b4b
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
cdcb3f03f3d153f3b615082c1e46aa087ba238ee01ab26381563f997d2a97841 - Sigstore transparency entry: 698239005
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jetdl-0.9.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 291.4 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625f057b4dddf2e5c445b0c31c36aa2de397ecaf1f83f7d4dddb9506f7e93db5
|
|
| MD5 |
4352942b6bdff341adc807bfd5cebdb4
|
|
| BLAKE2b-256 |
c39f41cadcf6526fad5ae9deb9cbffb05e8f18cae39f962f35246306f5b92d11
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
625f057b4dddf2e5c445b0c31c36aa2de397ecaf1f83f7d4dddb9506f7e93db5 - Sigstore transparency entry: 698239035
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jetdl-0.9.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 170.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c51811d166ac02a54e79a15ce918a875c29b8c5643bf5c129c53e15d6f5bed
|
|
| MD5 |
91dffe0435e3b18cda9bdee09c385ae1
|
|
| BLAKE2b-256 |
db5641afab37c431da1f6fd58dab08900eacdd47fcc0f6bf646c61dfb240918e
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp311-cp311-win_amd64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp311-cp311-win_amd64.whl -
Subject digest:
31c51811d166ac02a54e79a15ce918a875c29b8c5643bf5c129c53e15d6f5bed - Sigstore transparency entry: 698239061
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jetdl-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28e0edb79c14453cbe5e6fb75f1d3ffd31e3409c94a83b7529f7a6b861c1c1b8
|
|
| MD5 |
ca01492bf12ab591f7516c230b294b55
|
|
| BLAKE2b-256 |
967734400a5e9246886060aeb51e7e3173565a34b44e25a6c9b3c0163bd54378
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
28e0edb79c14453cbe5e6fb75f1d3ffd31e3409c94a83b7529f7a6b861c1c1b8 - Sigstore transparency entry: 698238969
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jetdl-0.9.0-cp311-cp311-macosx_15_0_arm64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp311-cp311-macosx_15_0_arm64.whl
- Upload date:
- Size: 150.0 kB
- Tags: CPython 3.11, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2378aaf1bf492263423889ca87dceb06255c096f21998f2562ad6fad1883edd
|
|
| MD5 |
fb3e57a58fcac420d24e5269f0519452
|
|
| BLAKE2b-256 |
8e2cb518f0e9462a022948250806572de6877cf6d3bd08dceefd586e11189dd0
|
File details
Details for the file jetdl-0.9.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: jetdl-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 152.0 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39d99990d1e5ca256b5ba85b78a1dafc8b264777d51aa7527adb287084ddb1c3
|
|
| MD5 |
50375d9becef15780c24c9736cc46ba4
|
|
| BLAKE2b-256 |
6f56c0b4c2d481ea0cf932350d95c2784510bf7e451fdeeff6bcc745a8d5f9c7
|
Provenance
The following attestation bundles were made for jetdl-0.9.0-cp311-cp311-macosx_11_0_arm64.whl:
Publisher:
publish.yml on LiibanMo/JetDL
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jetdl-0.9.0-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
39d99990d1e5ca256b5ba85b78a1dafc8b264777d51aa7527adb287084ddb1c3 - Sigstore transparency entry: 698239086
- Sigstore integration time:
-
Permalink:
LiibanMo/JetDL@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/LiibanMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1eb77346d64d8c9a0f6b26e8b8c7823a5440415 -
Trigger Event:
release
-
Statement type: