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 1.0 kB

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

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

Contributors (1)