tensorflow/core/kernels/data/experimental/assert_prev_dataset_op_test.cc
// Returns a stringified `NameAttrList`, the input to `AssertPrevDatasetOp`.
Returns a stringified `NameAttrList`, the input to `AssertPrevDatasetOp`.
Returns a stringified ` NameAttrList ` the input to ` AssertPrevDatasetOp ` .
std::string GetTransformation(
    absl::string_view name,
    std::initializer_list<std::pair<std::string, bool>> attrs = {}) {
  NameAttrList message;
  message.set_name(absl::StrCat(name, "Dataset"));
  for (const auto& attr : attrs) {
    AttrValue value;
    value.set_b(attr.second);
    message.mutable_attr()->insert({attr.first, value});
  }
  std::string output;
  protobuf::TextFormat::PrintToString(message, &output);
  return output;
}
std :: string GetTransformation ( absl :: string_view name , std :: initializer_list < std :: pair < std :: string , bool > > attrs = { } ) { NameAttrList message ; message . set_name ( absl :: StrCat ( name , " " ) ) ; for ( const auto & attr : attrs ) { AttrValue value ; value . set_b ( attr . second ) ; message . mutable_attr ( ) -> insert ( { attr . first , value } ) ; } std :: string output ; protobuf :: TextFormat :: PrintToString ( message , & output ) ; return output ; }
Returns a stringified `NameAttrList`, the input to `AssertPrevDatasetOp`.
Returns a stringified ` NameAttrList ` the input to ` AssertPrevDatasetOp ` .