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.

EagerModeTestBase.cs 670 B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using Tensorflow;
  6. using Tensorflow.Keras.Engine;
  7. using Tensorflow.Keras.Layers;
  8. using static Tensorflow.Binding;
  9. namespace TensorFlowNET.UnitTest
  10. {
  11. public class EagerModeTestBase : PythonTest
  12. {
  13. protected KerasApi keras = tf.keras;
  14. protected LayersApi layers = tf.keras.layers;
  15. [TestInitialize]
  16. public void TestInit()
  17. {
  18. if (!tf.executing_eagerly())
  19. tf.enable_eager_execution();
  20. }
  21. [TestCleanup]
  22. public void TestClean()
  23. {
  24. }
  25. }
  26. }