          if self.logger:
              self.logger.debug("GPU Devices: %s", names)
          return names
  
      def get_vram(self):
          """ Return total vram in megabytes per device """
          self.initialize()
          if self.device_count == 0:
              vram = list()
          elif self.plaid:
              vram = self.plaid.vram
          elif IS_MACOS:
              vram = [pynvx.cudaGetMemTotal(handle, ignore=True) / (1024 * 1024)
 
</s> remove         elif self.plaid:
            vram = self.plaid.vram
 </s> add         elif self._is_plaidml:
            vram = self._plaid.vram </s> remove                      for handle in self.handles]
        if self.logger:
            self.logger.debug("GPU Devices: %s", names)
 </s> add                      for handle in self._handles]
        self._log("debug", "GPU Devices: {}".format(names)) </s> remove                     for handle in self.handles]
 </s> add                     for handle in self._handles] </s> remove     def get_free(self):
        """ Return the vram available """
        self.initialize()
        if self.plaid:
            # NB There is no useful way to get free VRAM on PlaidML.
            # OpenCL loads and unloads VRAM as required, so this returns the total memory
            # It's not particularly useful
            vram = self.plaid.vram
 </s> add         """
        self._initialize()
        if self._is_plaidml:
            vram = self._plaid.vram </s> remove                     for handle in self.handles]
 </s> add                     for handle in self._handles]
    def _get_vram(self):
        """ Obtain the total VRAM in Megabytes for each connected GPU.

        Returns
        -------
        list
             List of floats containing the total amount of VRAM in Megabytes for each connected GPU
             as corresponding to the values in :attr:`_handles
        """
        self._initialize()
        if self._device_count == 0:
          if self.logger:
              self.logger.debug("GPU Devices: %s", names)
          return names
  
    def _get_vram(self):
        """ Obtain the total VRAM in Megabytes for each connected GPU.

        Returns
        -------
        list
             List of floats containing the total amount of VRAM in Megabytes for each connected GPU
             as corresponding to the values in :attr:`_handles
        """
        self._initialize()
        if self._device_count == 0:
    def _get_vram(self):
        """ Obtain the total VRAM in Megabytes for each connected GPU.

        Returns
        -------
        list
             List of floats containing the total amount of VRAM in Megabytes for each connected GPU
             as corresponding to the values in :attr:`_handles
        """
        self._initialize()
        if self._device_count == 0:
    def _get_vram(self):
        """ Obtain the total VRAM in Megabytes for each connected GPU.

        Returns
        -------
        list
             List of floats containing the total amount of VRAM in Megabytes for each connected GPU
             as corresponding to the values in :attr:`_handles
        """
        self._initialize()
        if self._device_count == 0:
    def _get_vram(self):
        """ Obtain the total VRAM in Megabytes for each connected GPU.

        Returns
        -------
        list
             List of floats containing the total amount of VRAM in Megabytes for each connected GPU
             as corresponding to the values in :attr:`_handles
        """
        self._initialize()
        if self._device_count == 0:
              vram = list()
          elif self.plaid:
              vram = self.plaid.vram
          elif IS_MACOS:
              vram = [pynvx.cudaGetMemTotal(handle, ignore=True) / (1024 * 1024)
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Core Updates (#1015)

- Remove lib.utils.keras_backend_quiet and replace with get_backend() where relevant
- Document lib.gpu_stats and lib.sys_info
- Remove call to GPUStats.is_plaidml from convert and replace with get_backend()
- lib.gui.menu - typofix 
lib/gpu_stats.py