提交 a3a6cbbe 编写于 作者: C caisq

Merge pull request #2676 from caisq/r0.9-ver

Replace assertEquals in graph_io_test; disable a session_bundle test
...@@ -118,8 +118,8 @@ class GraphIOTest(tf.test.TestCase): ...@@ -118,8 +118,8 @@ class GraphIOTest(tf.test.TestCase):
_VALID_FILE_PATTERN, batch_size, features, randomize_input=False, _VALID_FILE_PATTERN, batch_size, features, randomize_input=False,
queue_capacity=queue_capacity, reader_num_threads=2, queue_capacity=queue_capacity, reader_num_threads=2,
parser_num_threads=2, name=name) parser_num_threads=2, name=name)
self.assertEquals("%s/parse_example_batch_join:0" % name, self.assertEqual("%s/parse_example_batch_join:0" % name,
features["feature"].name) features["feature"].name)
file_name_queue_name = "%s/file_name_queue" % name file_name_queue_name = "%s/file_name_queue" % name
file_names_name = "%s/input" % file_name_queue_name file_names_name = "%s/input" % file_name_queue_name
example_queue_name = "%s/fifo_queue" % name example_queue_name = "%s/fifo_queue" % name
...@@ -147,7 +147,7 @@ class GraphIOTest(tf.test.TestCase): ...@@ -147,7 +147,7 @@ class GraphIOTest(tf.test.TestCase):
reader=tf.TFRecordReader, randomize_input=True, reader=tf.TFRecordReader, randomize_input=True,
num_epochs=1, num_epochs=1,
queue_capacity=queue_capacity, name=name) queue_capacity=queue_capacity, name=name)
self.assertEquals("%s:0" % name, inputs.name) self.assertEqual("%s:0" % name, inputs.name)
file_name_queue_name = "%s/file_name_queue" % name file_name_queue_name = "%s/file_name_queue" % name
file_name_queue_limit_name = ( file_name_queue_limit_name = (
"%s/limit_epochs/epochs" % file_name_queue_name) "%s/limit_epochs/epochs" % file_name_queue_name)
...@@ -176,7 +176,7 @@ class GraphIOTest(tf.test.TestCase): ...@@ -176,7 +176,7 @@ class GraphIOTest(tf.test.TestCase):
_VALID_FILE_PATTERN, batch_size, _VALID_FILE_PATTERN, batch_size,
reader=tf.TFRecordReader, randomize_input=True, reader=tf.TFRecordReader, randomize_input=True,
queue_capacity=queue_capacity, name=name) queue_capacity=queue_capacity, name=name)
self.assertEquals("%s:0" % name, inputs.name) self.assertEqual("%s:0" % name, inputs.name)
file_name_queue_name = "%s/file_name_queue" % name file_name_queue_name = "%s/file_name_queue" % name
file_names_name = "%s/input" % file_name_queue_name file_names_name = "%s/input" % file_name_queue_name
example_queue_name = "%s/random_shuffle_queue" % name example_queue_name = "%s/random_shuffle_queue" % name
......
...@@ -85,6 +85,7 @@ PY_TEST_BLACKLIST="${PY_TEST_BLACKLIST}:"\ ...@@ -85,6 +85,7 @@ PY_TEST_BLACKLIST="${PY_TEST_BLACKLIST}:"\
"tensorflow/contrib/quantization/python/dequantize_op_test.py:"\ "tensorflow/contrib/quantization/python/dequantize_op_test.py:"\
"tensorflow/contrib/quantization/python/quantized_conv_ops_test.py:"\ "tensorflow/contrib/quantization/python/quantized_conv_ops_test.py:"\
"tensorflow/contrib/quantization/tools/quantize_graph_test.py:"\ "tensorflow/contrib/quantization/tools/quantize_graph_test.py:"\
"tensorflow/contrib/session_bundle/exporter_test.py:"\
"tensorflow/python/platform/default/_resource_loader_test.py:"\ "tensorflow/python/platform/default/_resource_loader_test.py:"\
"tensorflow/python/platform/default/flags_test.py:"\ "tensorflow/python/platform/default/flags_test.py:"\
"tensorflow/python/platform/default/logging_test.py:"\ "tensorflow/python/platform/default/logging_test.py:"\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册