# 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Idein/nnoir/tree/master/nnoir",
"name": "nnoir",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "nnoir, machine learning",
"author": "Idein Inc.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/03/47/c2d4a492a83323c4afc4a71722b5e4b3dd25f945700ed508150c44ca5f58/nnoir-1.2.0.tar.gz",
"platform": null,
"description": "# NNOIR\n\n## Install\n\n```\npip install nnoir\n```\n\n## Example\n\n### Create & Save\n\n```python\ninputs = [nnoir.Value(b'v0', dtype='<f4', shape=(10,10)),\n nnoir.Value(b'v1', dtype='<f4', shape=(10,10))]\noutputs = [nnoir.Value(b'v2', dtype='<f4', shape=(10,10))]\nnodes = inputs + outputs\ninput_names = [ x.name for x in inputs ]\noutput_names = [ x.name for x in outputs ]\nfunctions = [nnoir.functions.Add(input_names, output_names)]\nresult = nnoir.NNOIR(b'Add', b'add_test', '0.1', input_names, output_names, nodes, functions)\nresult.dump('add.nnoir')\n```\n\n### Load\n\n```python\nadd_nnoir = nnoir.load('add.nnoir')\n```\n\n### Read/Write metadata from command line\n\n```bash\n$ nnoir-metadata resnet_50.nnoir\nname = CaffeFunction\ndescription =\ngenerator.name = chainer\ngenerator.version = 7.7.0\n$ nnoir-metadata resnet_50.nnoir --write-description \"This is resnet_50 (written by nnoir-metada)\"\n$ nnoir-metadata resnet_50.nnoir \nname = CaffeFunction\ndescription = This is resnet_50 (written by nnoir-metada)\ngenerator.name = chainer\ngenerator.version = 7.7.0\n$ nnoir-metadata resnet_50.nnoir --write-name \"CaffeFunction_V2\"\n$ nnoir-metadata resnet_50.nnoir\nname = CaffeFunction_V2\ndescription = This is resnet_50 (written by nnoir-metada)\ngenerator.name = chainer\ngenerator.version = 7.7.0\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "API for NNOIR",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/Idein/nnoir/tree/master/nnoir",
"Repository": "https://github.com/Idein/nnoir/tree/master/nnoir"
},
"split_keywords": [
"nnoir",
" machine learning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2bc01c4128fb1c0f27be1dd89e23c5acaa33e6692220a34d534ec8715c013556",
"md5": "f5ba52325cdbd65d4d9be27d5c437b66",
"sha256": "29615093bb9021b5083679bb7b6a750fa78448ab16e5b730b49ae462c86eff45"
},
"downloads": -1,
"filename": "nnoir-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f5ba52325cdbd65d4d9be27d5c437b66",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 32556,
"upload_time": "2024-07-09T01:54:57",
"upload_time_iso_8601": "2024-07-09T01:54:57.230367Z",
"url": "https://files.pythonhosted.org/packages/2b/c0/1c4128fb1c0f27be1dd89e23c5acaa33e6692220a34d534ec8715c013556/nnoir-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0347c2d4a492a83323c4afc4a71722b5e4b3dd25f945700ed508150c44ca5f58",
"md5": "7333ac5812b8a49d93e9df4472fe7f86",
"sha256": "8ae1b5ef2fc0863bb509b1ab5cf4295a899ca0912aeea620a6a841a5370c0141"
},
"downloads": -1,
"filename": "nnoir-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "7333ac5812b8a49d93e9df4472fe7f86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 14444,
"upload_time": "2024-07-09T01:54:58",
"upload_time_iso_8601": "2024-07-09T01:54:58.264973Z",
"url": "https://files.pythonhosted.org/packages/03/47/c2d4a492a83323c4afc4a71722b5e4b3dd25f945700ed508150c44ca5f58/nnoir-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-09 01:54:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Idein",
"github_project": "nnoir",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"circle": true,
"lcname": "nnoir"
}