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.4.0.tar.gz
(13.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nnoir-1.4.0-py3-none-any.whl
(33.4 kB
view details)
File details
Details for the file nnoir-1.4.0.tar.gz.
File metadata
- Download URL: nnoir-1.4.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.9.23 Linux/6.8.0-1031-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272868ffe67855c8d8bfe2e36b1bae78cb584a7d138d2c163d8b56054d45e080
|
|
| MD5 |
152c9f076daec1efa5d4a06a98c8b339
|
|
| BLAKE2b-256 |
0ed67024787281959e0aa3c4fb5ef105dc9dc272a2ea2f3140808498d1fa43e8
|
File details
Details for the file nnoir-1.4.0-py3-none-any.whl.
File metadata
- Download URL: nnoir-1.4.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.9.23 Linux/6.8.0-1031-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ae8981f56993ec9f604ce8191a9d160683214b75a969231e0940cfdc04e5112
|
|
| MD5 |
acbfe1e53a14877593d5b851ab39f7c2
|
|
| BLAKE2b-256 |
cc446c51da14cf2e4162af9bf7dc32ddb7efbb34443bc7db4f67bfeeeae22ef9
|