clearml_agent/commands/worker.py
def _verify_command_states(cls, kwargs):
        """
        Conform and enforce command argument
        This is where you can automatically turn on/off switches based on different states.
        :param kwargs:
        :return: kwargs
        """
        if kwargs.get('services_mode'):
            kwargs['cpu_only'] = True
            # kwargs['docker'] = kwargs.get('docker') or []
            kwargs['gpus'] = None

        return kwargs

        Conform and enforce command argument
        This is where you can automatically turn on/off switches based on different states.
        :param kwargs:
        :return: kwargs
        
Conform and enforce command argument
This is where you can automatically turn on/off switches based on different states.
Conform and enforce command argument This is where you can automatically turn on / off switches based on different states .
def _verify_command_states(cls, kwargs):
        if kwargs.get('services_mode'):
            kwargs['cpu_only'] = True
            kwargs['gpus'] = None
        return kwargs
def _verify_command_states ( cls , kwargs ) : if kwargs . get ( 'services_mode' ) : kwargs [ 'cpu_only' ] = True kwargs [ 'gpus' ] = None return kwargs
Conform and enforce command argument
This is where you can automatically turn on/off switches based on different states.
Conform and enforce command argument This is where you can automatically turn on / off switches based on different states .
"""
        Conform and enforce command argument
        This is where you can automatically turn on/off switches based on different states.
        :param kwargs:
        :return: kwargs
        """ # kwargs['docker'] = kwargs.get('docker') or []
None
cls
kwargs
None