tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc
// This tests the common case for a tf.function w/o outputs. This ends up
// being serialized as a "NoneValue".
This tests the common case for a tf.function w/o outputs. This ends up
being serialized as a "NoneValue".
This tests the common case for a tf . function w / o outputs . This ends up being serialized as a " NoneValue " .
TEST(SignatureFlatteningTest, ZeroRetOutputSignature) {
  std::vector<const TensorSpecProto*> flattened;
  StructuredValue value = testing::ZeroReturnOutputSignature();
  TF_EXPECT_OK(internal::FlattenSignature(value, &flattened));
  EXPECT_EQ(flattened.size(), 0);
}
TEST ( SignatureFlatteningTest , ZeroRetOutputSignature ) { std :: vector < const TensorSpecProto * > flattened ; StructuredValue value = testing :: ZeroReturnOutputSignature ( ) ; TF_EXPECT_OK ( internal :: FlattenSignature ( value , & flattened ) ) ; EXPECT_EQ ( flattened . size ( ) , 0 ) ; }
This tests the common case for a tf.function w/o outputs.
This tests the common case for a tf . function w / o outputs .