tensorflow/core/tpu/tpu_embedding_configuration_proto_rewrite.cc
// Validates that the batch_size_per_tensor_core and
// TableDescriptor.num_features fields are NOT populated in the TPU embedding
// configuration when the feature descriptor fields are filled in.
Validates that the batch_size_per_tensor_core and
TableDescriptor.num_features fields are NOT populated in the TPU embedding
configuration when the feature descriptor fields are filled in.
Validates that the batch_size_per_tensor_core and TableDescriptor . num_features fields are NOT populated in the TPU embedding configuration when the feature descriptor fields are filled in .
Status ValidateBatchSizeAndFeatureCountsAreEmpty(
    const tpu::TPUEmbeddingConfiguration& config) {
  if (config.batch_size_per_tensor_core() != 0) {
    return errors::InvalidArgument(
        "Invalid TPU embedding configuration. The batch_size_per_tensor_core "
        "field must NOT be populated when the feature_descriptor fields are "
        "filled in.");
  }
  for (const auto& table_config : config.table_descriptor()) {
    if (table_config.num_features() != 0) {
      return errors::InvalidArgument(absl::StrFormat(
          "Invalid TPU embedding configuration. The "
          "TableDescriptor.num_features field must NOT be populated when the "
          "feature_descriptor fields are filled in, num_features is set to %d "
          "for table %s.",
          table_config.num_features(), table_config.name()));
    }
  }  
  return Status::OK();
}
Status ValidateBatchSizeAndFeatureCountsAreEmpty ( const tpu :: TPUEmbeddingConfiguration & config ) { if ( config . batch_size_per_tensor_core ( ) != 0 ) { return errors :: InvalidArgument ( " " " " " " ) ; } for ( const auto & table_config : config . table_descriptor ( ) ) { if ( table_config . num_features ( ) != 0 ) { return errors :: InvalidArgument ( absl :: StrFormat ( " " " " " " " " , table_config . num_features ( ) , table_config . name ( ) ) ) ; } } return Status :: OK ( ) ; }
Validates that the batch_size_per_tensor_core and
TableDescriptor.num_features fields are NOT populated in the TPU embedding
configuration when the feature descriptor fields are filled in.
Validates that the batch_size_per_tensor_core and TableDescriptor . num_features fields are NOT populated in the TPU embedding configuration when the feature descriptor fields are filled in .
// table_config