diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-09-07 14:37:07 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-09-07 15:48:18 -0700 |
commit | 7705791619f5e851687e9a63b4315087e189f8be (patch) | |
tree | bc4f1da0194c55349c8bea154a6dd90cf2878d60 /tensorflow/core/util/example_proto_fast_parsing_test.cc | |
parent | d3b34b7e5600741080d10289ddb5d9eafdf53a82 (diff) |
Further improve performance of ParseExample fixing regression on specific benchmarks.
- Ensure that each thread receives equal piece.
- At least 8 threads (given 8 or more examples) and at most 64
- Use InlinedVector
Change: 132488652
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing_test.cc')
-rw-r--r-- | tensorflow/core/util/example_proto_fast_parsing_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing_test.cc b/tensorflow/core/util/example_proto_fast_parsing_test.cc index 6d3b548851..9da3f6ad2a 100644 --- a/tensorflow/core/util/example_proto_fast_parsing_test.cc +++ b/tensorflow/core/util/example_proto_fast_parsing_test.cc @@ -178,6 +178,15 @@ string MakeSerializedExample() { return serialized; } +TEST(TestFastParseExample, Empty) { + Result result; + FastParseExampleConfig config; + config.sparse.push_back({"test", DT_STRING}); + Status status = FastParseExample(config, gtl::ArraySlice<string>(), + gtl::ArraySlice<string>(), nullptr, &result); + EXPECT_TRUE(status.ok()) << status; +} + } // namespace } // namespace example |