using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using TensorFlowNET.Core; namespace TensorFlowNET.UnitTest { [TestClass] public class OperationsTest { [TestMethod] public void constant() { tf.constant(4.0); } [TestMethod] public void placeholder() { var x = tf.placeholder(tf.float32, shape: new TensorShape(1024, 1024)); } } }
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。