Nerual Network Notation
Project description
N3: Neural Network Notation
This project is WIP. Please be aware of using it.
node LeNet5:
let K: kernel size = int 5
let W: width = int 28
let H: height = int 28
with Conv2D:
set kernel size = K
set padding = K / 2
set stride = 2
node MyConv:
1. Conv2D
2. Relu
0. Input = 1, W , H
1. MyConv = 32, W/2, H/2
2. MyConv = 64, W/4, H/4
3. Transform = 64* W/4* H/4
4. Linear + Relu + Dropout = 1024
5. Linear + Softmax(D=-1) = 10
Usage
Server
$ sudo systemctl start n3-torchd
Client
Training
$ n3 train image_classification --model LeNet5 --data MNIST --devices cuda:0 cpu
Evaluating
$ n3 eval image_classification --model LeNet5 --data MNIST --devices cuda:0 cpu
Publishing
$ n3 publish image_classification --model LeNet5 --target android:java
- android: java, flutter
- ios: flutter
- universal: c++, python
Monitoring using Tensorboard
$ n3 monitor # or, browse http://localhost::xxxx/
Distributed Training
$ n3 train image_classification --model LeNet5 --data MNIST --devices w:180:cuda:0 w:192.168.0.181 cpu
- "w:180:cuda:0": the "cuda:0" device in "xxx.xxx.xxx.180" (local)
- "w:192.168.0.181": automatically choose devices in "192.168.0.181"
- These can be defined as environment variables (N3_MACHINES)
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
n3-0.2.0.tar.gz
(12.8 kB
view details)
Built Distribution
n3-0.2.0-py3-none-any.whl
(20.3 kB
view details)
File details
Details for the file n3-0.2.0.tar.gz
.
File metadata
- Download URL: n3-0.2.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61de58d1feb0bb3ae332e1a3da19b3dc1c7c838c5be6e2203744598dce83b13 |
|
MD5 | d610d1f67ddd4b286732b26b6b507e49 |
|
BLAKE2b-256 | 9a2001c09a9d8cd5177e50f7e0464630ac8a46a3eab97828113fc83f00e1f023 |
File details
Details for the file n3-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: n3-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3523d423a0bcfd6fdafcbfd94a89582e0ea0de3d133ec11e717f4e5ed65f613a |
|
MD5 | 5763f8d26b7b77555d3f365011ddc411 |
|
BLAKE2b-256 | a4e1f029dd1cdb51fbce430dad93ffb93e3a148af85f78e53d053e9973ac2921 |