In case the effort needed to give a boost to the desired C++ API is at the moment too high,

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Python/C++ API Parity: torch.nn modules and functional 5
    

    
      
        opened 
        
          
        
        Sep 9, 2019
      
      


      
        
          
          yf225
        
      
    
  



  Currently, PyTorch C++ API is missing many torch::nn layers that are available in the Python API. As part of the Python/C++...



    good first issue
    module: cpp
    module: nn
    triaged


  
  
    
    
  
  


I would suggest to ask for collective help within the C++ wide community.
I’m sure many C++ developers, who are notoriously willing to embark in difficult achievements, will be happy to help such great project like PyTorch