def set_image_dim_ordering(dim_ordering):
 global _IMAGE_DIM_ORDERING
 if (dim_ordering not in {'tf', 'th'}):
  raise ValueError('Unknown dim_ordering:', dim_ordering)
 _IMAGE_DIM_ORDERING = str(dim_ordering)

def set_image_dim_ordering ( dim_ordering ) : global _IMAGE_DIM_ORDERING if ( dim_ordering not in { 'tf' , 'th' } ) : raise ValueError ( 'Unknown dim_ordering:' , dim_ordering ) _IMAGE_DIM_ORDERING = str ( dim_ordering )
sets the value of the image dimension ordering convention .