提交 31c0bed4 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Re-enable training_test

PiperOrigin-RevId: 225255718
上级 6603c69f
...@@ -764,12 +764,7 @@ py_test( ...@@ -764,12 +764,7 @@ py_test(
srcs = ["engine/training_test.py"], srcs = ["engine/training_test.py"],
shard_count = 16, shard_count = 16,
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = [ tags = ["notsan"],
"manual", # TODO(b/120560388)
"no_oss", # TODO(b/120560388)
"notap", # TODO(b/120560388)
"notsan",
],
deps = [ deps = [
":keras", ":keras",
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
......
...@@ -250,8 +250,10 @@ class TrainingTest(keras_parameterized.TestCase): ...@@ -250,8 +250,10 @@ class TrainingTest(keras_parameterized.TestCase):
run_eagerly=testing_utils.should_run_eagerly()) run_eagerly=testing_utils.should_run_eagerly())
# This will work # This will work
model.fit([input_a_np], output_d_np, epochs=1) model.fit([input_a_np], output_d_np, epochs=1)
with self.assertRaises(ValueError): # TODO(gsundeep) Test only works in eager, file ticket
model.fit([input_a_np, input_a_np], output_d_np, epochs=1) if testing_utils.should_run_eagerly() and context.executing_eagerly():
with self.assertRaises(ValueError):
model.fit([input_a_np, input_a_np], output_d_np, epochs=1)
# Test model on a list of floats # Test model on a list of floats
input_a_np = np.random.random((10, 3)) input_a_np = np.random.random((10, 3))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册