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.2.0.tar.gz
(14.4 kB
view details)
Built Distribution
nnoir-1.2.0-py3-none-any.whl
(32.6 kB
view details)
File details
Details for the file nnoir-1.2.0.tar.gz
.
File metadata
- Download URL: nnoir-1.2.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.17 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae1b5ef2fc0863bb509b1ab5cf4295a899ca0912aeea620a6a841a5370c0141 |
|
MD5 | 7333ac5812b8a49d93e9df4472fe7f86 |
|
BLAKE2b-256 | 0347c2d4a492a83323c4afc4a71722b5e4b3dd25f945700ed508150c44ca5f58 |
File details
Details for the file nnoir-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: nnoir-1.2.0-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.17 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29615093bb9021b5083679bb7b6a750fa78448ab16e5b730b49ae462c86eff45 |
|
MD5 | f5ba52325cdbd65d4d9be27d5c437b66 |
|
BLAKE2b-256 | 2bc01c4128fb1c0f27be1dd89e23c5acaa33e6692220a34d534ec8715c013556 |