Skip to content

Commit

Permalink
Disable tests relying on TF1 behavior
Browse files Browse the repository at this point in the history
As part of the conversion to TF2, this ptch disables all tests that rely
on TF1 behavior by calling disable_v2_behavior(). This is so that the
functionality can be incrementally ported to TF2 in separate patches
without having to worry about dependencies. The tests will be
selectively reenabled as the functionality is ported.

Pull Request: google#278
  • Loading branch information
boomanaiden154 committed Jan 3, 2025
1 parent 09a6cde commit 88d5960
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gematria/granite/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ gematria_py_test(
timeout = "moderate",
srcs = ["gnn_model_base_test.py"],
shard_count = 15,
tags = [
"manual",
],
deps = [
":gnn_model_base",
"//gematria/model/python:options",
Expand Down Expand Up @@ -88,6 +91,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["graph_builder_model_base_test.py"],
tags = [
"manual",
],
deps = [
":gnn_model_base",
":graph_builder",
Expand Down Expand Up @@ -121,6 +127,9 @@ gematria_py_test(
timeout = "moderate",
srcs = ["rnn_token_model_test.py"],
shard_count = 18,
tags = [
"manual",
],
deps = [
":rnn_token_model",
"//gematria/basic_block/python:tokens",
Expand Down Expand Up @@ -166,6 +175,9 @@ gematria_py_test(
timeout = "moderate",
srcs = ["token_graph_builder_model_test.py"],
shard_count = 26,
tags = [
"manual",
],
deps = [
":token_graph_builder_model",
"//gematria/basic_block/python:tokens",
Expand Down
21 changes: 21 additions & 0 deletions gematria/model/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ gematria_py_test(
name = "inference_test",
size = "small",
srcs = ["inference_test.py"],
tags = [
"manual",
],
deps = [
":inference",
":model_base",
Expand All @@ -47,6 +50,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["loss_utils_test.py"],
tags = [
"manual",
],
deps = [
":loss_utils",
":options",
Expand Down Expand Up @@ -78,6 +84,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["main_function_test.py"],
tags = [
"manual",
],
deps = [
":inference",
":main_function",
Expand Down Expand Up @@ -112,6 +121,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["model_base_test.py"],
tags = [
"manual",
],
deps = [
":model_base",
":options",
Expand All @@ -134,6 +146,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["model_blocks_test.py"],
tags = [
"manual",
],
deps = [
":model_blocks",
],
Expand Down Expand Up @@ -179,6 +194,9 @@ gematria_py_test(
size = "small",
timeout = "moderate",
srcs = ["token_model_test.py"],
tags = [
"manual",
],
deps = [
":oov_token_behavior",
":token_model",
Expand Down Expand Up @@ -224,6 +242,9 @@ gematria_py_test(
name = "training_test",
size = "small",
srcs = ["training_test.py"],
tags = [
"manual",
],
deps = [
":training",
"//gematria/testing/python:basic_blocks_with_throughput",
Expand Down
6 changes: 6 additions & 0 deletions gematria/sequence/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ gematria_py_test(
timeout = "moderate",
srcs = ["sequence_model_test.py"],
shard_count = 10,
tags = [
"manual",
],
deps = [
":sequence_model",
"//gematria/basic_block/python:basic_block",
Expand Down Expand Up @@ -66,6 +69,9 @@ gematria_py_test(
timeout = "moderate",
srcs = ["sequence_model_hlstm_test.py"],
shard_count = 15,
tags = [
"manual",
],
deps = [
":sequence_model_hlstm",
"//gematria/model/python:oov_token_behavior",
Expand Down

0 comments on commit 88d5960

Please sign in to comment.