class_docstr: Mixin class for methods re-used across RAPIDS models
class_docstr_tok: ["Mixin","class","for","methods","re-used","across","RAPIDS","models"]
code: def _get_default_resources(self):
      num_cpus, _ = super()._get_default_resources()
      num_gpus = min(
          ResourceManager.get_gpu_count_torch(), 1
      )  # Use single gpu training by default. Consider revising it later.
      return num_cpus, num_gpus
  
imports: from typing import Dict
  from autogluon.common.utils.resource_utils import ResourceManager
label_desc: Use image node_id 2 for calling the RapidsModelMixin obj's underlying member method code with example usage: obj._get_default_resources() and returns: num_cpus,  num_gpus