API for NNOIR
Project description
NNOIR
Install
pip install nnoir
Example
Create & Save
inputs = [nnoir.Value(b'v0', dtype='<f4', shape=(10,10)),
nnoir.Value(b'v1', dtype='<f4', shape=(10,10))]
outputs = [nnoir.Value(b'v2', dtype='<f4', shape=(10,10))]
nodes = inputs + outputs
input_names = [ x.name for x in inputs ]
output_names = [ x.name for x in outputs ]
functions = [nnoir.functions.Add(input_names, output_names)]
result = nnoir.NNOIR(b'Add', b'add_test', '0.1', input_names, output_names, nodes, functions)
result.dump('add.nnoir')
Load
add_nnoir = nnoir.load('add.nnoir')
Read/Write metadata from command line
$ nnoir-metadata resnet_50.nnoir
name = CaffeFunction
description =
generator.name = chainer
generator.version = 7.7.0
$ nnoir-metadata resnet_50.nnoir --write-description "This is resnet_50 (written by nnoir-metada)"
$ nnoir-metadata resnet_50.nnoir
name = CaffeFunction
description = This is resnet_50 (written by nnoir-metada)
generator.name = chainer
generator.version = 7.7.0
$ nnoir-metadata resnet_50.nnoir --write-name "CaffeFunction_V2"
$ nnoir-metadata resnet_50.nnoir
name = CaffeFunction_V2
description = This is resnet_50 (written by nnoir-metada)
generator.name = chainer
generator.version = 7.7.0
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
nnoir-1.3.0.tar.gz
(14.6 kB
view details)
Built Distribution
nnoir-1.3.0-py3-none-any.whl
(33.0 kB
view details)
File details
Details for the file nnoir-1.3.0.tar.gz
.
File metadata
- Download URL: nnoir-1.3.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.17 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4d6f1644958cb37401dd5c230fc2e8558f48c7db261c0eb477dd25b8e759b944
|
|
MD5 |
fc49e7701dc464cd818308caa68e1256
|
|
BLAKE2b-256 |
4c101dcc05d224b725d598fe205ae363e31e4f2d25056042171b4688f88219bb
|
File details
Details for the file nnoir-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: nnoir-1.3.0-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.17 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
890f718ed01a56b450837fde712a0ef41e54f5610712b105404f1cf676de53b2
|
|
MD5 |
58049633e967013facf72e62669b003b
|
|
BLAKE2b-256 |
074eafe381783e5935b2b6621f6b915b0e1cee07b3d1de618e1187b932ce0724
|