nnoir


Namennoir JSON
Version 1.4.0 PyPI version JSON
download
home_pagehttps://github.com/Idein/nnoir/tree/master/nnoir
SummaryAPI for NNOIR
upload_time2025-08-14 08:29:09
maintainerNone
docs_urlNone
authorIdein Inc.
requires_python<4.0,>=3.9
licenseMIT
keywords nnoir machine learning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/0e/d6/7024787281959e0aa3c4fb5ef105dc9dc272a2ea2f3140808498d1fa43e8/nnoir-1.4.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.4.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": "cc446c51da14cf2e4162af9bf7dc32ddb7efbb34443bc7db4f67bfeeeae22ef9",
                "md5": "acbfe1e53a14877593d5b851ab39f7c2",
                "sha256": "8ae8981f56993ec9f604ce8191a9d160683214b75a969231e0940cfdc04e5112"
            },
            "downloads": -1,
            "filename": "nnoir-1.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "acbfe1e53a14877593d5b851ab39f7c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 33370,
            "upload_time": "2025-08-14T08:29:08",
            "upload_time_iso_8601": "2025-08-14T08:29:08.505447Z",
            "url": "https://files.pythonhosted.org/packages/cc/44/6c51da14cf2e4162af9bf7dc32ddb7efbb34443bc7db4f67bfeeeae22ef9/nnoir-1.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ed67024787281959e0aa3c4fb5ef105dc9dc272a2ea2f3140808498d1fa43e8",
                "md5": "152c9f076daec1efa5d4a06a98c8b339",
                "sha256": "272868ffe67855c8d8bfe2e36b1bae78cb584a7d138d2c163d8b56054d45e080"
            },
            "downloads": -1,
            "filename": "nnoir-1.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "152c9f076daec1efa5d4a06a98c8b339",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 13599,
            "upload_time": "2025-08-14T08:29:09",
            "upload_time_iso_8601": "2025-08-14T08:29:09.357324Z",
            "url": "https://files.pythonhosted.org/packages/0e/d6/7024787281959e0aa3c4fb5ef105dc9dc272a2ea2f3140808498d1fa43e8/nnoir-1.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-14 08:29:09",
    "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"
}
        
Elapsed time: 4.65950s