Add pyc files to gitignore, compute_aml runs too now
This commit is contained in:
		
							parent
							
								
									8786f26e1e
								
							
						
					
					
						commit
						c6cc9d57a8
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -29,9 +29,9 @@ def create_or_load_aml(
 | 
			
		|||
    ml_client = create_or_load_ml_client()
 | 
			
		||||
    try:
 | 
			
		||||
        # let's see if the compute target already exists
 | 
			
		||||
        cpu_cluster = ml_client.compute.get(XXXXX)
 | 
			
		||||
        cpu_cluster = ml_client.compute.get(cpu_compute_target)
 | 
			
		||||
        print(
 | 
			
		||||
            f"You already have a cluster named {XXXXX},",
 | 
			
		||||
            f"You already have a cluster named {cpu_compute_target},",
 | 
			
		||||
            "we'll reuse it.",
 | 
			
		||||
        )
 | 
			
		||||
    except Exception:
 | 
			
		||||
| 
						 | 
				
			
			@ -54,7 +54,7 @@ def create_or_load_aml(
 | 
			
		|||
        )
 | 
			
		||||
 | 
			
		||||
        # Now, we pass the object to MLClient's create_or_update method
 | 
			
		||||
        cpu_cluster = ml_client.compute.begin_create_or_update(XXXXX)
 | 
			
		||||
        cpu_cluster = ml_client.compute.begin_create_or_update(cpu_compute_target)
 | 
			
		||||
 | 
			
		||||
    return cpu_cluster
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue