@@ -145,13 +145,13 @@ TEST(BatchingSessionTest, TensorSignatureFromSignatureDefs) {
145145 const SignatureDef signature_def_0 =
146146 CreateSignatureDef ({{" x0" , " x1" }, {" y0" , " y1" }});
147147 const SignatureDef signature_def_1 =
148- CreateSignatureDef ({{" x1" , " x2" }, {" y1" , " y3 " }});
148+ CreateSignatureDef ({{" x1" , " x2" }, {" y1" , " y2 " }});
149149 const TensorSignature tensor_signature =
150150 TensorSignatureFromSignatureDefs ({signature_def_0, signature_def_1});
151151 EXPECT_THAT (tensor_signature.input_tensors ,
152152 UnorderedElementsAre (" x0" , " x1" , " x2" ));
153153 EXPECT_THAT (tensor_signature.output_tensors ,
154- UnorderedElementsAre (" y0" , " y1" , " y3 " ));
154+ UnorderedElementsAre (" y0" , " y1" , " y2 " ));
155155}
156156
157157TEST (BatchingSessionTest, Basic) {
@@ -199,9 +199,9 @@ TEST(BatchingSessionTest, RequestThatDoesntMatchSignatureGetsRunAnyway) {
199199 std::unique_ptr<Session> batching_session;
200200 BatchingSessionOptions batching_session_options;
201201 TF_ASSERT_OK (CreateBasicBatchingSession (
202- schedule_options, batching_session_options, {{" x2" }, {" y3 " }},
202+ schedule_options, batching_session_options, {{" x2" }, {" y2 " }},
203203 CreateHalfPlusTwoSession (), &batching_session));
204- // Issue a request using x/y, which doesn't match the x2/y3 signature.
204+ // Issue a request using x/y, which doesn't match the x2/y2 signature.
205205 TestSingleRequest (100 .0f , 42 .0f , batching_session.get ());
206206}
207207
@@ -299,7 +299,7 @@ TEST(BatchingSessionTest, DifferentOrderForInputAndOutputTensors) {
299299 BatchingSessionOptions batching_session_options;
300300 std::unique_ptr<Session> batching_session;
301301 TF_ASSERT_OK (CreateBasicBatchingSession (
302- schedule_options, batching_session_options, {{" x" , " x2" }, {" y" , " y3 " }},
302+ schedule_options, batching_session_options, {{" x" , " x2" }, {" y" , " y2 " }},
303303 CreateHalfPlusTwoSession (), &batching_session));
304304
305305 const Tensor input0 = test::AsTensor<float >({8 .0f , 6 .0f }, {2 });
@@ -311,7 +311,7 @@ TEST(BatchingSessionTest, DifferentOrderForInputAndOutputTensors) {
311311 Env::Default ()->StartThread (ThreadOptions (), " first_request_thread" , [&] {
312312 std::vector<Tensor> outputs;
313313 TF_ASSERT_OK (batching_session->Run ({{" x" , input0}, {" x2" , input1}},
314- {" y" , " y3 " } /* outputs */ ,
314+ {" y" , " y2 " } /* outputs */ ,
315315 {} /* target nodes */ , &outputs));
316316 ASSERT_EQ (2 , outputs.size ());
317317 test::ExpectTensorEqual<float >(expected_output0, outputs[0 ]);
@@ -321,7 +321,7 @@ TEST(BatchingSessionTest, DifferentOrderForInputAndOutputTensors) {
321321 ThreadOptions (), " second_request_thread" , [&] {
322322 std::vector<Tensor> outputs;
323323 TF_ASSERT_OK (batching_session->Run ({{" x2" , input1}, {" x" , input0}},
324- {" y3 " , " y" } /* outputs */ ,
324+ {" y2 " , " y" } /* outputs */ ,
325325 {} /* target nodes */ , &outputs));
326326 ASSERT_EQ (2 , outputs.size ());
327327 test::ExpectTensorEqual<float >(expected_output1, outputs[0 ]);
@@ -331,7 +331,7 @@ TEST(BatchingSessionTest, DifferentOrderForInputAndOutputTensors) {
331331 Env::Default ()->StartThread (ThreadOptions (), " third_request_thread" , [&] {
332332 std::vector<Tensor> outputs;
333333 TF_ASSERT_OK (batching_session->Run ({{" x2" , input1}, {" x" , input0}},
334- {" y" , " y3 " } /* outputs */ ,
334+ {" y" , " y2 " } /* outputs */ ,
335335 {} /* target nodes */ , &outputs));
336336 ASSERT_EQ (2 , outputs.size ());
337337 test::ExpectTensorEqual<float >(expected_output0, outputs[0 ]);
@@ -360,7 +360,7 @@ TEST(BatchingSessionTest, MultipleSignatures) {
360360 std::unique_ptr<Session> batching_session;
361361 TF_CHECK_OK (CreateBatchingSession (
362362 batching_session_options, {{{{" x" }, {" y" }}, create_scheduler},
363- {{{" x2" }, {" y3 " }}, create_scheduler}},
363+ {{{" x2" }, {" y2 " }}, create_scheduler}},
364364 CreateHalfPlusTwoSession (), &batching_session));
365365 ASSERT_EQ (2 , schedulers.size ());
366366
@@ -378,7 +378,7 @@ TEST(BatchingSessionTest, MultipleSignatures) {
378378 Tensor input = test::AsTensor<float >({100 .0f , 42 .0f }, {2 });
379379 Tensor expected_output = test::AsTensor<float >({53 .0f , 24 .0f }, {2 });
380380 std::vector<Tensor> outputs;
381- TF_ASSERT_OK (batching_session->Run ({{" x2" , input}}, {" y3 " } /* outputs */ ,
381+ TF_ASSERT_OK (batching_session->Run ({{" x2" , input}}, {" y2 " } /* outputs */ ,
382382 {} /* target nodes */ , &outputs));
383383 ASSERT_EQ (1 , outputs.size ());
384384 test::ExpectTensorEqual<float >(expected_output, outputs[0 ]);
0 commit comments