  
      def get_card_most_free(self):
          """ Return the card and available VRAM for active card with
              most VRAM free """
          if self.device_count == 0:
              return {"card_id": -1,
                      "device": "No Nvidia devices found",
                      "free": 2048,
                      "total": 2048}
          free_vram = [self.get_free()[i] for i in self.active_devices]
 
</s> remove     def get_card_most_free(self):
 </s> add     def get_card_most_free(self, supports_plaidml=True): </s> remove         return plaidml.settings.device_ids
 </s> add         return [idx for idx, d_id in enumerate(self.ids) if d_id in plaidml.settings.device_ids] </s> remove         vram = stats.get_card_most_free()
 </s> add         vram = stats.get_card_most_free(supports_plaidml=self.supports_plaidml) </s> remove         vram = stats.get_card_most_free()
 </s> add         vram = stats.get_card_most_free(supports_plaidml=self.supports_plaidml) </s> remove     @staticmethod
    def get_vram_free():
 </s> add     def get_vram_free(self):
        if self.device_count == 0 or (self.is_plaidml and not supports_plaidml):
  
      def get_card_most_free(self):
          """ Return the card and available VRAM for active card with
              most VRAM free """
        if self.device_count == 0 or (self.is_plaidml and not supports_plaidml):
              return {"card_id": -1,
                      "device": "No Nvidia devices found",
                      "free": 2048,
                      "total": 2048}
          free_vram = [self.get_free()[i] for i in self.active_devices]
keep keep keep keep replace keep keep keep keep keep
 Fix Active Devices for plaidML. Add Supports PlaidML to Extractors 
lib/gpu_stats.py