diff options
Diffstat (limited to 'tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc')
-rw-r--r-- | tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc b/tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc index 12b1924efd..c8becc5cc0 100644 --- a/tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc +++ b/tensorflow/core/grappler/optimizers/data/filter_fusion_test.cc @@ -19,8 +19,8 @@ limitations under the License. #include "tensorflow/core/framework/function_testlib.h" #include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/grappler/grappler_item.h" +#include "tensorflow/core/grappler/optimizers/data/graph_test_utils.h" #include "tensorflow/core/grappler/optimizers/data/graph_utils.h" - #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/test.h" @@ -28,14 +28,7 @@ namespace tensorflow { namespace grappler { namespace { -NodeDef MakeFilterNode(StringPiece name, StringPiece input_node_name) { - return test::function::NDef( - name, "FilterDataset", {string(input_node_name)}, - {{"predicate", FunctionDefHelper::FunctionRef("IsZero")}, - {"Targuments", {}}, - {"output_shapes", {}}, - {"output_types", {}}}); -} +using graph_tests_utils::MakeFilterNode; TEST(FilterFusionTest, FuseTwoFilterIntoOne) { using test::function::NDef; |