tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc
// This tests the common case for a tf.function w/o inputs. This ends up
// being serialized as a tuple of an empty tuple + empty dictionary
// (corresponding to the args, kwargs) of the function.
This tests the common case for a tf.function w/o inputs. This ends up
being serialized as a tuple of an empty tuple + empty dictionary
(corresponding to the args, kwargs) of the function.
This tests the common case for a tf . function w / o inputs . This ends up being serialized as a tuple of an empty tuple + empty dictionary ( corresponding to the args kwargs ) of the function .
TEST(SignatureFlatteningTest, ZeroArgInputSignature) {
  std::vector<const TensorSpecProto*> flattened;
  StructuredValue value = testing::ZeroArgInputSignature();
  TF_EXPECT_OK(internal::FlattenSignature(value, &flattened));
  EXPECT_EQ(flattened.size(), 0);
}
TEST ( SignatureFlatteningTest , ZeroArgInputSignature ) { std :: vector < const TensorSpecProto * > flattened ; StructuredValue value = testing :: ZeroArgInputSignature ( ) ; TF_EXPECT_OK ( internal :: FlattenSignature ( value , & flattened ) ) ; EXPECT_EQ ( flattened . size ( ) , 0 ) ; }
This tests the common case for a tf.function w/o inputs.
This tests the common case for a tf . function w / o inputs .