Skip to content

Commit

Permalink
add information header
Browse files Browse the repository at this point in the history
  • Loading branch information
manu12121999 committed Dec 9, 2024
1 parent 642b6b7 commit a97aacc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Ctrl_C_NN
Dependency-free neural network inference framework in a single file
Dependency-free neural network inference framework in a single file.

CURRENTLY IN DEVELOPMENT: NOT IN A USABLE STATE YET

## What is it for
Inference with simple neural networks where installing dependencies is not possible. This project is and will be dependency-free and has the most open open-source license. Whatever you need it for, just copy the single .py file into your project, and you can run an already-trained neural network.
Expand All @@ -8,20 +10,20 @@ Inference with simple neural networks where installing dependencies is not possi
Since it is written 100% in Python, its performance is terrible compared to PyTorch or numpy-based frameworks. It's not designed for the training of neural networks but to load and run simple Pytorch neural networks.

## WIP
| Description | Status |
|------------------------------------------|------------------------|
| Base Tensor class | :white_check_mark: |
| Tensor operations (+, *, @) | :white_check_mark: |
| Tensor Broadcasting | :white_check_mark: |
| Tensor Shape Manipulation (e.g. reshape) | :white_check_mark: |
| Simple Layers and Non-linearities | :white_check_mark: |
| Forward pass of simple NN | :large_orange_diamond: |
| Backward pass of simple NN | :large_orange_diamond: |
| Convolutional Layers | :x: |
| Reading pth files | :x: |
| Basic Image I/O | :x: |
| ... | :x: |
| ... | :x: |
| Description | Status |
|------------------------------------------|----------------------------|
| Base Tensor class | :white_check_mark: |
| Tensor operations (+, *, @) | :white_check_mark: |
| Tensor Broadcasting | :white_check_mark: |
| Tensor Shape Manipulation (e.g. reshape) | :white_check_mark: |
| Simple Layers and Non-linearities | :white_check_mark: |
| Forward pass of simple NN | :large_orange_diamond: WIP |
| Backward pass of simple NN | :large_orange_diamond: WIP |
| Convolutional Layers | :x: |
| Reading pth files | :x: |
| Basic Image I/O | :x: |
| ... | :x: |
| ... | :x: |


## Sample Usage Tensor
Expand Down
7 changes: 6 additions & 1 deletion ctrl_c_nn.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
__author__ = "Manuel Vogel"
__version__ = "0.0.1"
__website__ = "https://github.com/manu12121999/ctrl_c_nn"
__original_source__ = "https://github.com/manu12121999/ctrl_c_nn/blob/main/ctrl_c_nn.py"
__email__ = "manu12121999@gmail.com"

import random
import sys
import math
import operator
from multiprocessing import Pool
import itertools

sumprod = math.sumprod if sys.version_info >= (3, 12) else lambda p, q: sum([p_i*q_i for p_i, q_i in zip(p, q)])

Expand Down

0 comments on commit a97aacc

Please sign in to comment.