tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc
// This test has an exotic outputsignature of tuple of a
// dictionary<string,tensor>, tensor
This test has an exotic outputsignature of tuple of a
dictionary, tensor
This test has an exotic outputsignature of tuple of a dictionary tensor
TEST(SignatureFlatteningTest, ThreeReturnOutputSignature) {
  std::vector<const TensorSpecProto*> flattened;
  StructuredValue value = testing::ThreeReturnOutputSignature();
  TF_EXPECT_OK(internal::FlattenSignature(value, &flattened));
  EXPECT_EQ(flattened.size(), 3);
  EXPECT_TRUE(TensorSpecsAreEqual(*flattened[0],
                                   "0/a",
                                   {1},
                                   DT_FLOAT))
      << "Expected " << flattened[0]->DebugString();
  EXPECT_TRUE(TensorSpecsAreEqual(*flattened[1],
                                   "0/b",
                                   {1},
                                   DT_FLOAT))
      << "Expected " << flattened[1]->DebugString();
  EXPECT_TRUE(TensorSpecsAreEqual(*flattened[2],
                                   "1",
                                   {1},
                                   DT_FLOAT))
      << "Expected " << flattened[2]->DebugString();
}
TEST ( SignatureFlatteningTest , ThreeReturnOutputSignature ) { std :: vector < const TensorSpecProto * > flattened ; StructuredValue value = testing :: ThreeReturnOutputSignature ( ) ; TF_EXPECT_OK ( internal :: FlattenSignature ( value , & flattened ) ) ; EXPECT_EQ ( flattened . size ( ) , 3 ) ; EXPECT_TRUE ( TensorSpecsAreEqual ( * flattened [ 0 ] , " " , { 1 } , DT_FLOAT ) ) << " " << flattened [ 0 ] -> DebugString ( ) ; EXPECT_TRUE ( TensorSpecsAreEqual ( * flattened [ 1 ] , " " , { 1 } , DT_FLOAT ) ) << " " << flattened [ 1 ] -> DebugString ( ) ; EXPECT_TRUE ( TensorSpecsAreEqual ( * flattened [ 2 ] , " " , { 1 } , DT_FLOAT ) ) << " " << flattened [ 2 ] -> DebugString ( ) ; }
This test has an exotic outputsignature of tuple of a
dictionary<string,tensor>, tensor
This test has an exotic outputsignature of tuple of a dictionary<string tensor > tensor
/* expected_name = */ /* expected_shape = */ /* expected_dtype = */ /* expected_name = */ /* expected_shape = */ /* expected_dtype = */ /* expected_name = */ /* expected_shape = */ /* expected_dtype = */