mirror of
				https://github.com/clearml/clearml
				synced 2025-06-26 18:16:07 +00:00 
			
		
		
		
	Fix type check in hyper-parameters argparser integration
This commit is contained in:
		
							parent
							
								
									1e011e10a2
								
							
						
					
					
						commit
						af0b8f4c70
					
				@ -111,7 +111,8 @@ class _Arguments(object):
 | 
			
		||||
        if parsed_args:
 | 
			
		||||
            for k, v in parsed_args.__dict__.items():
 | 
			
		||||
                if k not in task_defaults:
 | 
			
		||||
                    if type(v) == None:
 | 
			
		||||
                    # do not change this comparison because isinstance(type(v), type(None)) === False
 | 
			
		||||
                    if type(v) == type(None):
 | 
			
		||||
                        task_defaults[k] = ''
 | 
			
		||||
                    elif type(v) in (str, int, float, bool, list):
 | 
			
		||||
                        task_defaults[k] = v
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user