pyanomaly/core/engine/abstract/abstract_engine.py
def data_parallel(self, model):
        """Parallel the models.
        Data parallel the model by using torch.nn.DataParallel
        Args:
            model: torch.nn.Module
        Returns:
            model_parallel
        """
        logger.info('<!_!> ==> Data Parallel')
        gpus = [int(i) for i in self.engine_gpus]
        model_parallel = torch.nn.DataParallel(model.cuda(), device_ids=gpus)
        return model_parallel
Parallel the models.
        Data parallel the model by using torch.nn.DataParallel
        Args:
            model: torch.nn.Module
        Returns:
            model_parallel
        
Parallel the models.
Data parallel the model by using torch.nn.DataParallel
Parallel the models . Data parallel the model by using torch . nn . DataParallel
def data_parallel(self, model):
        logger.info('<!_!> ==> Data Parallel')
        gpus = [int(i) for i in self.engine_gpus]
        model_parallel = torch.nn.DataParallel(model.cuda(), device_ids=gpus)
        return model_parallel
def data_parallel ( self , model ) : logger . info ( '<!_!> ==> Data Parallel' ) gpus = [ int ( i ) for i in self . engine_gpus ] model_parallel = torch . nn . DataParallel ( model . cuda ( ) , device_ids = gpus ) return model_parallel
Parallel the models.
Parallel the models .
"""Parallel the models.
        Data parallel the model by using torch.nn.DataParallel
        Args:
            model: torch.nn.Module
        Returns:
            model_parallel
        """
None
self
model
None