tensorflow/core/api_def/api_test.cc
// Check that all ops have an ApiDef.
Check that all ops have an ApiDef.
Check that all ops have an ApiDef .
TEST_F(BaseApiTest, AllOpsAreInApiDef) {
  auto* excluded_ops = GetExcludedOps();
  for (const auto& op : ops_.op()) {
    if (excluded_ops->find(op.name()) != excluded_ops->end()) {
      continue;
    }
    EXPECT_TRUE(api_defs_map_.find(op.name()) != api_defs_map_.end())
        << op.name() << " op does not have api_def_*.pbtxt file. "
        << "Please add api_def_" << op.name() << ".pbtxt file "
        << "under tensorflow/core/api_def/base_api/ directory.";
  }
}
TEST_F ( BaseApiTest , AllOpsAreInApiDef ) { auto * excluded_ops = GetExcludedOps ( ) ; for ( const auto & op : ops_ . op ( ) ) { if ( excluded_ops -> find ( op . name ( ) ) != excluded_ops -> end ( ) ) { continue ; } EXPECT_TRUE ( api_defs_map_ . find ( op . name ( ) ) != api_defs_map_ . end ( ) ) << op . name ( ) << " " << " " << op . name ( ) << " " << " " ; } }
Check that all ops have an ApiDef.
Check that all ops have an ApiDef .