GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - csuffyy/TensorFlow.NET: Google's TensorFlow binding for .NET Standard, building and running the Machine Learning models in CSharp.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

258 Commits
258 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
docs
docs
 
 
src
src
 
 
tensorflowlib
tensorflowlib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TensorFlow.NET.sln
TensorFlow.NET.sln
 
 

Repository files navigation

TensorFlow.NET

TensorFlow.NET provides .NET Standard binding for TensorFlow. It's the full complete binding in CSharp language for TensorFlow API. It allows .NET developers to develop, train and deploy Machine Learning models in .NET standard which is running on cross-platform.

Join the chat at https://gitter.im/publiclab/publiclab Tensorflow.NET codecov NuGet Documentation Status

TensorFlow.NET is a member project of SciSharp STACK.

tensors_flowing

Why should we use TensorFlow.NET ?

SciSharp STASK's mission is to create a zero learning curve on the .NET based technology stack Machine Learning tool library. Let's take a look at a comparison picture and you can see why TensorFlow.NET is the tool that is the most comfortable for you.

pythn vs csharp

SciSharp's philosophy allows a large number of machine learning code written in python to be quickly migrated to .NET, allowing a large number of .NET Developers to use more updated models.

How to use

Install TensorFlow.NET through NuGet.

PM> Install-Package TensorFlow.NET

If you are using Linux or Mac OS, please download the pre-compiled dll here and place it in the working folder. This is only need for Linux and Mac OS, and already packed into NuGet for Windows.

Import tensorflow.net.

using Tensorflow;

Add two constants.

// Create a Constant op
var a = tf.constant(4.0f);
var b = tf.constant(5.0f);
var c = tf.add(a, b);

using (var sess = tf.Session())
{
    var o = sess.run(c);
}

Feed placeholder.

// Create a placeholder op
var a = tf.placeholder(tf.float32);
var b = tf.placeholder(tf.float32);
var c = tf.add(a, b);

using(var sess = tf.Session())
{
    var feed_dict = new Dictionary<Tensor, object>();
    feed_dict.Add(a, 3.0f);
    feed_dict.Add(b, 2.0f);

    var o = sess.run(c, feed_dict);
}

Read the docs & book The Definitive Guide to Tensorflow.NET.

More examples:

  • Hello World
  • Basic Operations
  • Image Recognition
  • Linear Regression
  • Text Classification
  • CNN Text Classification
  • Naive Bayes Classification
  • Named Entity Recognition

Star me or raise issue on Github feel free.

Scan QR code to join Tencent TIM group:

SciSharp STACK

About

Google's TensorFlow binding for .NET Standard, building and running the Machine Learning models in CSharp.

github.com/SciSharp

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.