Skip to content

Commit

Permalink
Reflect review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nikelite committed Oct 28, 2024
1 parent 33724c1 commit b09ac2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ jobs:
- name: Run unit tests
shell: bash
run: |
pytest -vv -m "${{ matrix.which-tests }}" tfx
pytest -m "${{ matrix.which-tests }}"
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import create_complex_graph
from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import graph_partition

tf.compat.v1.enable_eager_execution() # Re-enable eager mode
@pytest.fixture
def enable_eager_execution_at_test_end():
yield
# Re-enable eager mode that create_complex_graph diabled.
tf.compat.v1.enable_eager_execution()

class BeamPipelineTest(tf.test.TestCase):
"""A test for the beam pipeline library."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import graph_partition
from google.protobuf import text_format

tf.compat.v1.enable_eager_execution() # Re-enable eager mode
@pytest.fixture
def enable_eager_execution_at_test_end():
yield
# Re-enable eager mode that create_complex_graph diabled.
tf.compat.v1.enable_eager_execution()


class RemoteOpLayerTest(tf.test.TestCase):
"""A test for the class _RemoteOpLayer."""
Expand Down

0 comments on commit b09ac2a

Please sign in to comment.