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.

NameScopeTest.cs 512 B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Tensorflow;
  3. using static Tensorflow.Binding;
  4. namespace TensorFlowNET.UnitTest.Basics
  5. {
  6. [TestClass]
  7. public class NameScopeTest : EagerModeTestBase
  8. {
  9. string name = "";
  10. [TestMethod]
  11. public void NameScopeInEagerMode()
  12. {
  13. tf_with(new ops.NameScope("scope"), scope =>
  14. {
  15. string name = scope;
  16. var const1 = tf.constant(1.0);
  17. });
  18. }
  19. }
  20. }