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.
|
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Tensorflow;
-
- namespace TensorFlowNET.UnitTest
- {
- [TestClass]
- public class VariableTest
- {
- [TestMethod]
- public void StringVar()
- {
- var mammal1 = tf.Variable("Elephant", "var1", tf.chars);
- var mammal2 = tf.Variable("Tiger");
- }
-
- [TestMethod]
- public void ScalarVar()
- {
- var x = tf.Variable(3);
- var y = tf.Variable(6f);
- }
- }
- }
|