(self)
Collector GPU stats
Collector GPU stats
Collector GPU stats
def collect(self):
        """
        Collector GPU stats
        """
        stats_config = self.config['stats']
        if USE_PYTHON_BINDING:
            collect_metrics = self.collect_via_pynvml
        else:
            collect_metrics = self.collect_via_nvidia_smi

        collect_metrics(stats_config)
def collect ( self ) : stats_config = self . config [ 'stats' ] if USE_PYTHON_BINDING : collect_metrics = self . collect_via_pynvml else : collect_metrics = self . collect_via_nvidia_smi collect_metrics ( stats_config )