mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	c10::optional -> std::optional
Summary: `c10::optional` is an alias for `std::optional`. Let's remove the alias and use the real thing. Reviewed By: meyering Differential Revision: D63402341 fbshipit-source-id: 241383e7ca4b2f3f1f9cac3af083056123dfd02b
This commit is contained in:
		
							parent
							
								
									2da913c7e6
								
							
						
					
					
						commit
						8ed0c7a002
					
				@ -213,8 +213,8 @@ std::tuple<size_t, size_t, bool, torch::Tensor> Renderer::arg_check(
 | 
			
		||||
    const float& gamma,
 | 
			
		||||
    const float& max_depth,
 | 
			
		||||
    float& min_depth,
 | 
			
		||||
    const c10::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const c10::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const std::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const std::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const float& percent_allowed_difference,
 | 
			
		||||
    const uint& max_n_hits,
 | 
			
		||||
    const uint& mode) {
 | 
			
		||||
@ -668,8 +668,8 @@ std::tuple<torch::Tensor, torch::Tensor> Renderer::forward(
 | 
			
		||||
    const float& gamma,
 | 
			
		||||
    const float& max_depth,
 | 
			
		||||
    float min_depth,
 | 
			
		||||
    const c10::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const c10::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const std::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const std::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const float& percent_allowed_difference,
 | 
			
		||||
    const uint& max_n_hits,
 | 
			
		||||
    const uint& mode) {
 | 
			
		||||
@ -912,8 +912,8 @@ Renderer::backward(
 | 
			
		||||
    const float& gamma,
 | 
			
		||||
    const float& max_depth,
 | 
			
		||||
    float min_depth,
 | 
			
		||||
    const c10::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const c10::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const std::optional<torch::Tensor>& bg_col,
 | 
			
		||||
    const std::optional<torch::Tensor>& opacity,
 | 
			
		||||
    const float& percent_allowed_difference,
 | 
			
		||||
    const uint& max_n_hits,
 | 
			
		||||
    const uint& mode,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user