Here is the result I run cProfile

  
      gist.github.com
  
  
    https://gist.github.com/ttpro1995/7e5b8903cb3068245a0538a5f5247f7f 17
full_profiling
/home/vdvinh/miniconda3/envs/ml/bin/python /home/vdvinh/projects/profile_gru/sentiment.py
2017-05-11 10:43:53,153 : INFO : LOG_FILE
2017-05-11 10:43:53,154 : INFO : _________________________________start___________________________________
2017-05-11 10:43:53,156 : INFO : name default_log
2017-05-11 10:43:53,157 : INFO : batchsize 25
2017-05-11 10:43:53,157 : INFO : epochs 10
2017-05-11 10:43:53,157 : INFO : lr 0.05
2017-05-11 10:43:53,157 : INFO : emblr 0
2017-05-11 10:43:53,157 : INFO : tag_emblr 0
2017-05-11 10:43:53,157 : INFO : rel_emblr 0
This file has been truncated. show original




  
  
    
    
  
  


I note that {method ‘run_backward’ of ‘torch._C._EngineBase’ objects} take longer every epoch