Skip to main content

N3: Neural Network Notation

travis-ci

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)

Metadata

Release files for n3 0.2.0

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

Source distribution (sdist)

Source distribution for n3 0.2.0
File Size Uploaded Provenance Actions
n3-0.2.0.tar.gz 12.8 kB Without provenance Details for n3-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.1 kB

Release files / n3-0.2.0.tar.gz

Download URL n3-0.2.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b61de58d1feb0bb3ae332e1a3da19b3dc1c7c838c5be6e2203744598dce83b13
BLAKE2b-256 checksum
How to use checksums
9a2001c09a9d8cd5177e50f7e0464630ac8a46a3eab97828113fc83f00e1f023
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / n3-0.2.0-py3-none-any.whl

Download URL n3-0.2.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3523d423a0bcfd6fdafcbfd94a89582e0ea0de3d133ec11e717f4e5ed65f613a
BLAKE2b-256 checksum
How to use checksums
a4e1f029dd1cdb51fbce430dad93ffb93e3a148af85f78e53d053e9973ac2921
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for n3 0.2.0

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.

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