Thanks for your reply.
I don’t notice that my codes have this problem…
Is it related to this issue?

  
      github.com/pytorch/pytorch
  
  
    



Issue: Error building a custom PyTorch CUDA extension with 1.0 on macOS High Sierra 2


	
	opened by michhar
	on 2018-09-28
	
	
	closed by soumith
	on 2018-10-06
	


🐛 Bug
I am getting an error during the build of a custom CUDA extension with PyTorch 1.0 on macOS High Sierra....




  
  
    
    
  
  


And I am trying to update to pytorch-master to see whether it can solve this problem.