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.

OperationsTest.cs 508 B

6 years ago
6 years ago
6 years ago
123456789101112131415161718192021222324
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using TensorFlowNET.Core;
  6. namespace TensorFlowNET.UnitTest
  7. {
  8. [TestClass]
  9. public class OperationsTest
  10. {
  11. [TestMethod]
  12. public void constant()
  13. {
  14. tf.constant(4.0);
  15. }
  16. [TestMethod]
  17. public void placeholder()
  18. {
  19. var x = tf.placeholder(tf.float32, shape: new TensorShape(1024, 1024));
  20. }
  21. }
  22. }

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

Contributors (1)