47 lines
1010 B
Markdown
47 lines
1010 B
Markdown
[](https://travis-ci.org/chaosmail/onnx-proto)
|
|
|
|
# Onnx Proto
|
|
|
|
Compiled Onnx Protobuf definition for JavaScript from [github.com/onnx/onnx/blob/master/onnx/onnx.proto3](https://github.com/onnx/onnx/blob/master/onnx/onnx.proto3).
|
|
|
|
## Include Onnx Definition in Typescript
|
|
|
|
First, add `onnx-proto` to your project.
|
|
|
|
```sh
|
|
npm install onnx-proto
|
|
```
|
|
|
|
Now, you can import the Onnx definition from the `onnx-proto` namespace.
|
|
|
|
```ts
|
|
import {onnx} from 'onnx-proto';
|
|
```
|
|
|
|
## Build
|
|
|
|
To update the definition, you have to run the following commands.
|
|
|
|
```sh
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
New versions are automatically released to npm from the master branch.
|
|
|
|
## Changelog
|
|
|
|
* 4.0.0
|
|
* Add Travis CI/CD
|
|
* Update to latest Onnx definition
|
|
* 3.1.1
|
|
* Remove unused files
|
|
* 3.1.0
|
|
* Initial release of Onnx IR_VERSION 3
|
|
|
|
## License
|
|
|
|
The software is provided under MIT license.
|
|
|
|
Onnx License: https://github.com/onnx/onnx/blob/master/LICENSE
|