Hi,
I have got this error

Traceback (most recent call last):
File “train.py”, line 15, in 
model = CreateModel(opt)
File “model/model_Loader.py”, line 15, in CreateModel
model.init_weights()
File “model/DRGAN.py”, line 204, in init_weights
self.G.apply(weights_init_normal)
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 293, in apply
module.apply(fn)
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 293, in apply
module.apply(fn)
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 293, in apply
module.apply(fn)
[Previous line repeated 2 more times]
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 294, in apply
fn(self)
File “model/Component.py”, line 49, in weights_init_normal
init.uniform_(m.weight.data, 1.0, 0.02)
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/init.py”, line 88, in uniform_
return no_grad_uniform(tensor, a, b)
File “/home/pirl/anaconda3/envs/dr-gan-torch1-2/lib/python3.6/site-packages/torch/nn/init.py”, line 14, in no_grad_uniform
return tensor.uniform_(a, b)
RuntimeError: Expected a_in <= b_in to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)

File “train.py”, line 15, in  is

model = CreateModel(opt)

File “model/model_Loader.py”, line 15, in CreateModel is

model.init_weights()

File “model/DRGAN.py”, line 204, in init_weights is

203    def init_weights(self):
204        self.G.apply(weights_init_normal)
205        self.D.apply(weights_init_normal)

I got this pytorch code from

  
      
      GitHub
  
  
    

zhangjunh/DR-GAN-by-pytorch

An implement of Disentangled Representation Learning GAN for Pose-Invariant Face Recognition - zhangjunh/DR-GAN-by-pytorch


  
  
    
    
  
  


and try to run it.
According to github-site, the required pytorch version is 0.2, however my torch version is 1.2, the latest version.
I want to run in the current version without changing the version.
Any help will be greatly appreciated!!!