parameters: (self, name: str)
docstring: Removes the layer called name.
  
          This will throw an exception if other layers depend upon this layer
  
          Args:
              name: The name of the layer to delete
docstring_summary: Removes the layer called name.
docstring_tokens: Removes the layer called name .
function: def del_layer(self, name: str) -> None:
          """Removes the layer called name.
  
          This will throw an exception if other layers depend upon this layer
  
          Args:
              name: The name of the layer to delete
          """
          for layer in self._layers:
              depend_list = [superlayer for superlayer in self._layers if name in self._layers[layer].dependencies]
              if depend_list:
                  raise exceptions.LayerException(
                      self._layers[layer].name,
                      "Layer {} is depended upon: {}".format(self._layers[layer].name, ", ".join(depend_list)))
          self._layers[name].destroy()
          del self._layers[name]
function_tokens: def del_layer ( self , name : str ) -> None : for layer in self . _layers : depend_list = [ superlayer for superlayer in self . _layers if name in self . _layers [ layer ] . dependencies ] if depend_list : raise exceptions . LayerException ( self . _layers [ layer ] . name , "Layer {} is depended upon: {}" . format ( self . _layers [ layer ] . name , ", " . join ( depend_list ) ) ) self . _layers [ name ] . destroy ( ) del self . _layers [ name ]