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 457 B

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