platypush/plugins/tensorflow/__init__.py
def remove(self, model: str) -> None:
        """
        Unload a module and, if stored on the filesystem, remove its resource files as well.
        WARNING: This operation is not reversible.

        :param model: Name of the model.
        """
        with self._lock_model(model):
            if model in self.models:
                del self.models[model]

        model_dir = os.path.join(self._models_dir, model)
        if os.path.isdir(model_dir):
            shutil.rmtree(model_dir)

        Unload a module and, if stored on the filesystem, remove its resource files as well.
        WARNING: This operation is not reversible.

        :param model: Name of the model.
        
Unload a module and, if stored on the filesystem, remove its resource files as well.
WARNING: This operation is not reversible.
Unload a module and if stored on the filesystem remove its resource files as well . WARNING : This operation is not reversible .
def remove(self, model: str) -> None:
        with self._lock_model(model):
            if model in self.models:
                del self.models[model]
        model_dir = os.path.join(self._models_dir, model)
        if os.path.isdir(model_dir):
            shutil.rmtree(model_dir)
def remove ( self , model : str ) -> None : with self . _lock_model ( model ) : if model in self . models : del self . models [ model ] model_dir = os . path . join ( self . _models_dir , model ) if os . path . isdir ( model_dir ) : shutil . rmtree ( model_dir )
Unload a module and, if stored on the filesystem, remove its resource files as well.
Unload a module and if stored on the filesystem remove its resource files as well .
"""
        Unload a module and, if stored on the filesystem, remove its resource files as well.
        WARNING: This operation is not reversible.

        :param model: Name of the model.
        """
self
model
str
Name of the model.
Name of the model .