Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625513414
  • Loading branch information
tensorflower-gardener committed Apr 17, 2024
1 parent 73851a0 commit 5eb46fe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//tensorflow_model_optimization:tensorflow_model_optimization.bzl", "py_strict_library", "py_strict_test", "pytype_strict_library")
load("//tensorflow_model_optimization:tensorflow_model_optimization.bzl", "pytype_strict_library", "pytype_strict_test")

licenses(["notice"])

Expand All @@ -14,7 +14,7 @@ pytype_strict_library(
],
)

py_strict_library(
pytype_strict_library(
name = "schedules",
srcs = ["schedules.py"],
srcs_version = "PY3ONLY",
Expand All @@ -23,7 +23,7 @@ py_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "schedules_test",
srcs = [
"schedules_test.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//tensorflow_model_optimization:tensorflow_model_optimization.bzl", "py_strict_library", "py_strict_test", "pytype_strict_library")
load("//tensorflow_model_optimization:tensorflow_model_optimization.bzl", "pytype_strict_library", "pytype_strict_test")

package(default_visibility = ["//visibility:private"])

Expand All @@ -16,7 +16,7 @@ pytype_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "epr_test",
timeout = "long",
srcs = ["epr_test.py"],
Expand Down Expand Up @@ -46,7 +46,7 @@ pytype_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "same_training_and_inference_test",
timeout = "long",
srcs = ["same_training_and_inference_test.py"],
Expand All @@ -72,7 +72,7 @@ pytype_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "different_training_and_inference_test",
timeout = "long",
srcs = ["different_training_and_inference_test.py"],
Expand All @@ -98,7 +98,7 @@ pytype_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "bias_only_test",
timeout = "long",
srcs = ["bias_only_test.py"],
Expand All @@ -113,7 +113,7 @@ py_strict_test(
],
)

py_strict_library(
pytype_strict_library(
name = "weight_clustering",
srcs = ["weight_clustering.py"],
srcs_version = "PY3",
Expand All @@ -127,7 +127,7 @@ py_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "weight_clustering_test",
srcs = ["weight_clustering_test.py"],
python_version = "PY3",
Expand All @@ -152,7 +152,7 @@ pytype_strict_library(
],
)

py_strict_test(
pytype_strict_test(
name = "periodical_update_and_scheduling_test",
timeout = "long",
srcs = ["periodical_update_and_scheduling_test.py"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ def pytype_library(name, **kwargs):
# Placeholder to use until bazel supports py_strict_test.
def py_strict_test(name, **kwargs):
native.py_test(name = name, **kwargs)

# Placeholder to use until bazel supports ptype_strict_test.
def ptype_strict_test(name, **kwargs):
native.py_test(name = name, **kwargs)

0 comments on commit 5eb46fe

Please sign in to comment.