STT-tensorflow/tensorflow/python/eager/benchmarks/resnet50/BUILD
Kibeom Kim 0c67638ac2 Remove deprecated tfrt_enabled test target flag.
PiperOrigin-RevId: 338530097
Change-Id: I0bd2ad366210330ece06f99a4fdb16de395ece05
2020-10-22 12:55:06 -07:00

98 lines
2.1 KiB
Python

load("//tensorflow:tensorflow.bzl", "cuda_py_test")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
py_library(
name = "resnet50",
srcs = ["resnet50.py"],
srcs_version = "PY2AND3",
deps = [
"//tensorflow:tensorflow_py_no_contrib",
],
)
py_library(
name = "resnet50_test_util",
srcs = ["resnet50_test_util.py"],
srcs_version = "PY2AND3",
deps = [
":resnet50",
"//tensorflow:tensorflow_py_no_contrib",
],
)
py_library(
name = "resnet50_test_lib",
srcs = ["resnet50_test.py"],
srcs_version = "PY2AND3",
deps = [
":resnet50",
":resnet50_test_util",
"//tensorflow:tensorflow_py_no_contrib",
],
)
cuda_py_test(
name = "resnet50_test",
size = "medium",
srcs = ["resnet50_test.py"],
shard_count = 4,
tags = [
"no_windows", # TODO(b/141617449): needs investigation
"optonly",
"oss_serial",
"v1only",
],
deps = [
":resnet50",
":resnet50_test_util",
"//tensorflow:tensorflow_py_no_contrib",
],
)
cuda_py_test(
name = "hvp_test",
size = "medium",
srcs = ["hvp_test.py"],
shard_count = 7,
tags = [
"no_windows", # TODO(b/141617449): needs investigation
"optonly",
"oss_serial",
"v1only",
],
# Times out
xla_enable_strict_auto_jit = False,
deps = [
":resnet50",
":resnet50_test_util",
"//tensorflow:tensorflow_py_no_contrib",
"//tensorflow/python/eager:forwardprop",
"@six_archive//:six",
],
)
cuda_py_test(
name = "resnet50_graph_test",
size = "medium",
srcs = ["resnet50_graph_test.py"],
shard_count = 4,
tags = [
"no_windows", # TODO(b/141617449): needs investigation
"noasan",
"nomsan",
"notsan",
"optonly",
"oss_serial",
],
deps = [
":resnet50",
":resnet50_test_lib",
"//tensorflow:tensorflow_py_no_contrib",
"//third_party/py/numpy",
],
)