MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MapDatasetParams3

Function MapDatasetParams3

tensorflow/core/kernels/data/map_dataset_op_test.cc:143–156  ·  view source on GitHub ↗

In this test case, the function `XTimesFour()` will call `XTimesTwo()`, so both of them are added to the function library.

Source from the content-addressed store, hash-verified

141// In this test case, the function `XTimesFour()` will call `XTimesTwo()`, so
142// both of them are added to the function library.
143MapDatasetParams MapDatasetParams3() {
144 return {
145 {/*start=*/0, /*stop=*/10, /*step=*/3},
146 /*other_arguments=*/{},
147 /*func=*/
148 FunctionDefHelper::FunctionRef("XTimesFour", {{"T", DT_INT64}}),
149 /*func_lib=*/{test::function::XTimesTwo(), test::function::XTimesFour()},
150 /*type_arguments=*/{},
151 /*output_dtypes=*/{DT_INT64},
152 /*output_shapes=*/{PartialTensorShape({})},
153 /*use_inter_op_parallelism=*/false,
154 /*preserve_cardinality=*/true,
155 /*node_name=*/kNodeName};
156}
157
158std::vector<GetNextTestCase<MapDatasetParams>> GetNextTestCases() {
159 return {{/*dataset_params=*/MapDatasetParams1(),

Callers 3

GetNextTestCasesFunction · 0.85
CardinalityTestCasesFunction · 0.85

Calls 3

XTimesTwoFunction · 0.85
XTimesFourFunction · 0.85
PartialTensorShapeClass · 0.85

Tested by

no test coverage detected