parallel neural network layer for binarization of ternarization - quantized layers from the beginning
Project description
plinear
Github for parrallel - linear layer
You can install PLinear using pip:
pip install plinear
Example usage
import torch
import torch.nn as nn
from plinear import btnn
class SimpleNN(nn.Module):
def __init__(self):
super(SimpleNN, self).__init__()
self.fc1 = btnn.Linear(28*28, 128)
self.fc2 = btnn.Linear(128, 10)
def forward(self, x):
x = torch.flatten(x, 1)
x = self.fc1(x)
x = self.fc2(x)
return x
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
plinear-0.2.0.2.tar.gz
(4.2 kB
view details)
Built Distribution
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 plinear-0.2.0.2.tar.gz.
File metadata
- Download URL: plinear-0.2.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7265a70cf6b63af719ccc6837d0ea32fc6bd40a64ed835895322e1d42df2a98e
|
|
| MD5 |
bebb033669b103cef4068e5d621fa5a7
|
|
| BLAKE2b-256 |
4f5483c5e5db9c575f86ad991f3e6801ce5ad9d86134eebf17b480afc0b235a2
|
File details
Details for the file plinear-0.2.0.2-py3-none-any.whl.
File metadata
- Download URL: plinear-0.2.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26b699e8d18c5e1e5864c5547dab6e1d69b98b4e083098fe85aa099b3a35ba3
|
|
| MD5 |
6b1346eb34194e2c061040f889373021
|
|
| BLAKE2b-256 |
bd5bac3851208dd7aa315570f76bd9e513239aa4aca5aefbb0728b95428aac2d
|