Skip to content

Add Float16 and BFloat16 support to C# API#5775

Merged
yuslepukhin merged 5 commits into
masterfrom
yuslepukhin/float16_support_cs
Nov 13, 2020
Merged

Add Float16 and BFloat16 support to C# API#5775
yuslepukhin merged 5 commits into
masterfrom
yuslepukhin/float16_support_cs

Conversation

@yuslepukhin
Copy link
Copy Markdown
Member

Description:
Address issue #948
Provide a way to feed/fetch data to evaluate ONNX model using onnxruntime.

Motivation and Context
People want to fine prune their models and save space.

@yuslepukhin yuslepukhin requested a review from a team as a code owner November 12, 2020 01:04
Comment thread csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs
Comment thread csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs
Comment thread csharp/testdata/test_input_FLOAT16.py
Comment thread csharp/testdata/test_input_BFLOAT16.py
pranavsharma
pranavsharma previously approved these changes Nov 12, 2020
Comment thread csharp/src/Microsoft.ML.OnnxRuntime/DisposableNamedOnnxValue.cs Outdated
@tianleiwu
Copy link
Copy Markdown
Contributor

Do we have plan to support half data type in .Net 5.0?
https://devblogs.microsoft.com/dotnet/introducing-the-half-type/
It can cast explicitly from/to float or double. That will be helpful.

@yuslepukhin yuslepukhin merged commit 2f35e65 into master Nov 13, 2020
@yuslepukhin yuslepukhin deleted the yuslepukhin/float16_support_cs branch November 13, 2020 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants