Ejemplo n.º 1
0
 def _make_unique_name(self, name_uid_map=None, avoid_names=None,
                       namespace='', zero_based=False):
   base_name = base_layer.to_snake_case(self.__class__.__name__)
   name = base_layer_utils.unique_layer_name(base_name,
                                             name_uid_map=name_uid_map,
                                             avoid_names=avoid_names,
                                             namespace=namespace,
                                             zero_based=zero_based)
   return (name, base_name)
Ejemplo n.º 2
0
 def _make_unique_name(self, name_uid_map=None, avoid_names=None,
                       namespace='', zero_based=False):
   base_name = base_layer.to_snake_case(self.__class__.__name__)
   name = base_layer_utils.unique_layer_name(base_name,
                                             name_uid_map=name_uid_map,
                                             avoid_names=avoid_names,
                                             namespace=namespace,
                                             zero_based=zero_based)
   return (name, base_name)