Metadata-Version: 2.1
Name: nnoir
Version: 1.1.0
Summary: API for NNOIR
Home-page: https://github.com/Idein/nnoir/tree/master/nnoir
License: MIT
Keywords: nnoir,machine learning
Author: Idein Inc.
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Dist: importlib-metadata (>=4,<5)
Requires-Dist: msgpack (>=1,<2)
Requires-Dist: numpy (>=1,<2)
Project-URL: Repository, https://github.com/Idein/nnoir/tree/master/nnoir
Description-Content-Type: text/markdown

# NNOIR

## Install

```
pip install nnoir
```

## Example

### Create & Save

```python
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

```python
add_nnoir = nnoir.load('add.nnoir')
```

### Read/Write metadata from command line

```bash
$ 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
```
