  
  def safe_shutdown():
      """ Close queues, threads and processes in event of crash """
      logger.debug("Safely shutting down")
      from lib.queue_manager import queue_manager
      from lib.multithreading import terminate_processes
      queue_manager.terminate_queues()
 
</s> remove from lib.logger import get_loglevel
 </s> add 
    logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  def safe_shutdown():
      """ Close queues, threads and processes in event of crash """
    logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
      logger.debug("Safely shutting down")
      from lib.queue_manager import queue_manager
      from lib.multithreading import terminate_processes
      queue_manager.terminate_queues()
keep keep add keep keep keep keep
 Experimental AMD Support (#764)

* PlaidML support in setup.py

* Add AMD flag for plaidml support

* PlaidML - Use .plaidML file if present, otherwise default to largest available

* Update training info message for GUI

* Add AMD option to Windows Installer

* Add quiet keras.backend importer and minor sysinfo amend.

* plug PlaidMLStats into GPUStats

* Update Docs 
lib/utils.py