mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	suppress errors in vision/fair/pytorch3d
				
					
				
			Differential Revision: D38529199 fbshipit-source-id: 4bc0574493b60f13e08d9ea7bded862778b3d171
This commit is contained in:
		
							parent
							
								
									e924de4bf2
								
							
						
					
					
						commit
						624bc5a274
					
				@ -323,7 +323,6 @@ def random_quaternions(
 | 
			
		||||
    """
 | 
			
		||||
    if isinstance(device, str):
 | 
			
		||||
        device = torch.device(device)
 | 
			
		||||
    # pyre-fixme[6]: For 2nd param expected `dtype` but got `Optional[dtype]`.
 | 
			
		||||
    o = torch.randn((n, 4), dtype=dtype, device=device)
 | 
			
		||||
    s = (o * o).sum(1)
 | 
			
		||||
    o = o / _copysign(torch.sqrt(s), o[:, 0])[:, None]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user