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.

GraphModeTestBase.cs 524 B

123456789101112131415161718192021222324
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using TensorFlowNET.UnitTest;
  6. using static Tensorflow.Binding;
  7. namespace Tensorflow.UnitTest
  8. {
  9. public class GraphModeTestBase : PythonTest
  10. {
  11. [TestInitialize]
  12. public void TestInit()
  13. {
  14. tf.compat.v1.disable_eager_execution();
  15. }
  16. [TestCleanup]
  17. public void TestClean()
  18. {
  19. tf.enable_eager_execution();
  20. }
  21. }
  22. }