-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create README.md and update project properties for nuget package (#3)
- Loading branch information
Showing
5 changed files
with
85 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
![Build and test](https://github.com/nietras/OnnxSharp/workflows/.NET/badge.svg) | ||
[![NuGet](https://img.shields.io/nuget/v/OnnxSharp)](https://www.nuget.org/packages/OnnxSharp/) | ||
[![Downloads](https://img.shields.io/nuget/dt/OnnxSharp)](https://www.nuget.org/packages/OnnxSharp/) | ||
[![Stars](https://img.shields.io/github/stars/nietras/OnnxSharp)](https://github.com/nietras/OnnxSharp/stargazers) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md) | ||
|
||
# OnnxSharp | ||
ONNX format parsing and manipulation in C#. | ||
|
||
# Status | ||
Pretty much just: | ||
``` | ||
.\protoc.exe .\onnx.proto3 --csharp_out=OnnxSharp | ||
``` | ||
|
||
# Example Code | ||
```csharp | ||
using System.IO; | ||
using System.Linq; | ||
using Google.Protobuf; | ||
|
||
// Examples see https://github.com/onnx/models | ||
var onnxInputFilePath = @"mnist-8.onnx"; | ||
|
||
using var file = File.OpenRead(onnxInputFilePath); | ||
|
||
var model = Onnx.ModelProto.Parser.ParseFrom(file); | ||
|
||
var graph = model.Graph; | ||
var inputs = graph.Input; | ||
var values = graph.ValueInfo; | ||
var outputs = graph.Output; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters