File tree 10 files changed +40
-39
lines changed
10 files changed +40
-39
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ must:
13
13
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the layer is behaving as expected.
16
- * When applicable, run all unittests with TensorFlow's
17
- ` @run_in_graph_and_eager_modes ` (for test method)
18
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
19
- decorator.
16
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
17
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
18
+ decorator. This will run the tests twice, once normally, and once
19
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
20
20
* Add a ` py_test ` to this sub-package's BUILD file.
21
21
* Add activation name to [ activations_test.py] ( https://github.com/tensorflow/addons/tree/master/tensorflow_addons/activations/activations_test.py ) to test serialization.
22
22
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ must:
13
13
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the callback is behaving as expected.
16
- * When applicable, run all unittests with TensorFlow's
17
- ` @run_in_graph_and_eager_modes ` (for test method)
18
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
19
- decorator .
16
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
17
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
18
+ decorator. This will run the tests twice, once normally, and once
19
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
20
20
* Add a ` py_test ` to this sub-package's BUILD file.
21
21
22
22
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ must:
16
16
#### Testing Requirements
17
17
* Simple unittests that demonstrate the image op is behaving as
18
18
expected.
19
- * When applicable, run all unittests with TensorFlow's
20
- ` @run_in_graph_and_eager_modes ` (for test method)
21
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
22
- decorator .
19
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
20
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
21
+ decorator. This will run the tests twice, once normally, and once
22
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
23
23
* Add a ` py_test ` to this sub-package's BUILD file.
24
24
25
25
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ must:
13
13
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the layer is behaving as expected.
16
- * When applicable, run all unittests with TensorFlow's
17
- ` @run_in_graph_and_eager_modes ` (for test method)
18
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
19
- decorator .
16
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
17
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
18
+ decorator. This will run the tests twice, once normally, and once
19
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
20
20
* Run ` layer_test ` on the layer.
21
21
* Add a ` py_test ` to this sub-package's BUILD file.
22
22
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ must:
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the loss is behaving as expected on
16
16
some set of known inputs and outputs.
17
- * When applicable, run all tests with TensorFlow's
18
- ` @run_in_graph_and_eager_modes ` (for test method)
19
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
20
- decorator .
17
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
18
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
19
+ decorator. This will run the tests twice, once normally, and once
20
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
21
21
* Add a ` py_test ` to this sub-package's BUILD file.
22
22
23
23
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ must:
13
13
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the metric is behaving as expected.
16
- * When applicable, run all unittests with TensorFlow's
17
- ` @run_in_graph_and_eager_modes ` (for test method)
18
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
19
- decorator .
16
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
17
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
18
+ decorator. This will run the tests twice, once normally, and once
19
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
20
20
* Add a ` py_test ` to this sub-package's BUILD file.
21
21
22
22
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ must:
12
12
* Add the addon to the ` py_library ` in this sub-package's BUILD file.
13
13
14
14
#### Testing Requirements
15
- * When applicable, run all tests with TensorFlow's
16
- ` @run_in_graph_and_eager_modes ` (for test method)
17
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
18
- decorator .
15
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
16
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
17
+ decorator. This will run the tests twice, once normally, and once
18
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
19
19
* Add a ` py_test ` to this sub-package's BUILD file.
20
20
21
21
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ In order to conform with the current API standard, all cells must:
18
18
* Add the addon to the ` py_library ` in this sub-package's BUILD file.
19
19
20
20
#### Testing Requirements
21
- * When applicable, run all tests with TensorFlow's
22
- ` @run_in_graph_and_eager_modes ` (for test method)
23
- or ` @run_all_in_graph_and_eager_modes ` (for TestCase subclass)
24
- decorator .
21
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
22
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
23
+ decorator. This will run the tests twice, once normally, and once
24
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
25
25
* Add a ` py_test ` to this sub-package's BUILD file.
26
26
27
27
#### Documentation Requirements
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ In order to conform with the current API standard, all objects must:
14
14
#### Testing Requirements
15
15
* Simple unittests that demonstrate the class is behaving as expected on
16
16
some set of known inputs and outputs.
17
- * When applicable, run all tests with TensorFlow's
18
- ` @run_in_graph_and_eager_modes ` (for test method)
19
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass) decorator.
17
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
18
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
19
+ decorator. This will run the tests twice, once normally, and once
20
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
20
21
* Add a ` py_test ` to this sub-package's BUILD file.
21
22
22
23
## Sample code and Migration guide from TF 1.X
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ must:
15
15
#### Testing Requirements
16
16
* Simple unittests that demonstrate the text op is behaving as
17
17
expected.
18
- * When applicable, run all unittests with TensorFlow's
19
- ` @run_in_graph_and_eager_modes ` (for test method)
20
- or ` run_all_in_graph_and_eager_modes ` (for TestCase subclass)
21
- decorator .
18
+ * To run your ` tf.functions ` in eager mode and graph mode in the tests,
19
+ you can use the ` @pytest.mark.usefixtures("maybe_run_functions_eagerly") `
20
+ decorator. This will run the tests twice, once normally, and once
21
+ with ` tf.config.experimental_run_functions_eagerly(True) ` .
22
22
* Add a ` py_test ` to this sub-package's BUILD file.
23
23
24
24
#### Documentation Requirements
You can’t perform that action at this time.
0 commit comments