You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 867 B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # TensorFlow.NET
  2. TensorFlow.NET provides .NET Standard binding for [TensorFlow](https://www.tensorflow.org/).
  3. TensorFlow.NET is a member project of SciSharp stack.
  4. ![tensors_flowing](docs/assets/tensors_flowing.gif)
  5. ### How to use
  6. Download the pre-compiled dll [here](tensorflowlib) and place it in the bin folder.
  7. ```cs
  8. // import tensorflow.net
  9. using using Tensorflow;
  10. ```
  11. ```cs
  12. // Create a Constant op
  13. var a = tf.constant(4.0f);
  14. var b = tf.constant(5.0f);
  15. var c = tf.add(a, b);
  16. using (var sess = tf.Session())
  17. {
  18. var o = sess.run(c);
  19. }
  20. ```
  21. ```cs
  22. // Create a placeholder op
  23. var a = tf.placeholder(tf.float32);
  24. var b = tf.placeholder(tf.float32);
  25. var c = tf.add(a, b);
  26. using(var sess = tf.Session())
  27. {
  28. var feed_dict = new Dictionary<Tensor, object>();
  29. feed_dict.Add(a, 3.0f);
  30. feed_dict.Add(b, 2.0f);
  31. var o = sess.run(c, feed_dict);
  32. }
  33. ```

tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。

Contributors (1)