  
      def shutdown(self):
          """ Shutdown pynvml """
          if self.initialized:
              self.handles = None
              if not IS_MACOS and not self.plaid:
                  pynvml.nvmlShutdown()
              self.initialized = False
  
      def get_device_count(self):
 
</s> remove         self.devices = None
 </s> add         self.devices = list() </s> remove         self.handles = None
 </s> add         self.handles = list()
            self.handles = list()
  
      def shutdown(self):
          """ Shutdown pynvml """
          if self.initialized:
            self.handles = list()
              if not IS_MACOS and not self.plaid:
                  pynvml.nvmlShutdown()
              self.initialized = False
  
      def get_device_count(self):
keep keep keep keep replace keep keep keep keep keep
 GPUStats: Bugfix for no Handles 
lib/gpu_stats.py