


'''simple docstring'''

import operator as op


lowerCamelCase							:   Dict  						=	'scaler.pt'
lowerCamelCase							:   Optional[Any]  						=	'pytorch_model'
lowerCamelCase							:   List[Any]  						=	'random_states'
lowerCamelCase							:   Union[str, Any]  						=	'optimizer'
lowerCamelCase							:   str  						=	'scheduler'
lowerCamelCase							:   int  						=	'pytorch_model.bin'
lowerCamelCase							:   Optional[Any]  						=	'pytorch_model.bin.index.json'
lowerCamelCase							:   List[Any]  						=	'model.safetensors'
lowerCamelCase							:   Any  						=	'model.safetensors.index.json'
lowerCamelCase							:   str  						=	'1.10.2'
lowerCamelCase							:   List[str]  						=	'py38'
lowerCamelCase							:   List[Any]  						=	'4.17.0'
lowerCamelCase							:   Union[str, Any]  						=	['ml.p3.16xlarge', 'ml.p3dn.24xlarge', 'ml.p4dn.24xlarge']
lowerCamelCase							:   Optional[int]  						=	['FULL_SHARD', 'SHARD_GRAD_OP', 'NO_SHARD', 'HYBRID_SHARD', 'HYBRID_SHARD_ZERO2']
lowerCamelCase							:   Any  						=	['TRANSFORMER_BASED_WRAP', 'SIZE_BASED_WRAP', 'NO_WRAP']
lowerCamelCase							:   Tuple  						=	['BACKWARD_PRE', 'BACKWARD_POST', 'NO_PREFETCH']
lowerCamelCase							:   Tuple  						=	['FULL_STATE_DICT', 'LOCAL_STATE_DICT', 'SHARDED_STATE_DICT']
lowerCamelCase							:   Optional[int]  						=	'2.0.1'
lowerCamelCase							:   str  						=	['pdsh', 'standard', 'openmpi', 'mvapich']
lowerCamelCase							:   str  						=	['default', 'reduce-overhead', 'max-autotune']

lowerCamelCase							:   Optional[Any]  						=	{'>': op.gt, '>=': op.ge, '==': op.eq, '!=': op.ne, '<=': op.le, '<': op.lt}

# These are the args for `torch.distributed.launch` for pytorch < 1.9
lowerCamelCase							:   List[Any]  						=	[
    'nnodes',
    'nproc_per_node',
    'rdzv_backend',
    'rdzv_endpoint',
    'rdzv_id',
    'rdzv_conf',
    'standalone',
    'max_restarts',
    'monitor_interval',
    'start_method',
    'role',
    'module',
    'm',
    'no_python',
    'run_path',
    'log_dir',
    'r',
    'redirects',
    't',
    'tee',
    'node_rank',
    'master_addr',
    'master_port',
]

lowerCamelCase							:   List[Any]  						=	['DEEPSPEED', 'MULTI_GPU', 'FSDP', 'MEGATRON_LM']
lowerCamelCase							:   Optional[Any]  						=	['DEEPSPEED', 'MULTI_XPU', 'FSDP']









def 		UpperCamelCase	(   snake_case__       :    int       ,     snake_case__       :    int	)	->     int:
   return int(input_a == input_a == 0	)
def 		UpperCamelCase	(   )	->     None:
   print('Truth Table of NOR Gate:'	)
   print('|   Input 1   |  Input 2  | Output |'	)
   print(F"""|      0      |    0      |  {nor_gate(0       ,     0	)}     |"""	)
   print(F"""|      0      |    1      |  {nor_gate(0       ,     1	)}     |"""	)
   print(F"""|      1      |    0      |  {nor_gate(1       ,     0	)}     |"""	)
   print(F"""|      1      |    1      |  {nor_gate(1       ,     1	)}     |"""	)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()



