Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
6 years ago | |
---|---|---|
docs | 6 years ago | |
src/TensorFlowNET.Core | 6 years ago | |
tensorflowlib | 6 years ago | |
test | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
TensorFlow.NET.sln | 6 years ago |
TensorFlow.NET provides .NET Standard binding for TensorFlow.
TensorFlow.NET is a member project of SciSharp stack.
Download the pre-compiled dll here and place it in the bin folder.
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);
}
Star me or raise issue on Github feel free.
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。
C# Unity3D Asset PureBasic Python