Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. RuntimeError Traceback (most recent call last)
  2. <ipython-input-33-ad6e701ffab6> in <module>()
  3. ----> 1 learn.fit(lr, 3, cycle_len=1)
  4.  
  5. ~/fastai/courses/dl1/fastai/learner.py in fit(self, lrs, n_cycle, wds, **kwargs)
  6. 285 self.sched = None
  7. 286 layer_opt = self.get_layer_opt(lrs, wds)
  8. --> 287 return self.fit_gen(self.model, self.data, layer_opt, n_cycle, **kwargs)
  9. 288
  10. 289 def warm_up(self, lr, wds=None):
  11.  
  12. ~/fastai/courses/dl1/fastai/learner.py in fit_gen(self, model, data, layer_opt, n_cycle, cycle_len, cycle_mult, cycle_save_name, best_save_name, use_clr, use_clr_beta, metrics, callbacks, use_wd_sched, norm_wds, wds_sched_mult, use_swa, swa_start, swa_eval_freq, **kwargs)
  13. 232 metrics=metrics, callbacks=callbacks, reg_fn=self.reg_fn, clip=self.clip, fp16=self.fp16,
  14. 233 swa_model=self.swa_model if use_swa else None, swa_start=swa_start,
  15. --> 234 swa_eval_freq=swa_eval_freq, **kwargs)
  16. 235
  17. 236 def get_layer_groups(self): return self.models.get_layer_groups()
  18.  
  19. ~/fastai/courses/dl1/fastai/model.py in fit(model, data, n_epochs, opt, crit, metrics, callbacks, stepper, swa_model, swa_start, swa_eval_freq, **kwargs)
  20. 138 batch_num += 1
  21. 139 for cb in callbacks: cb.on_batch_begin()
  22. --> 140 loss = model_stepper.step(V(x),V(y), epoch)
  23. 141 avg_loss = avg_loss * avg_mom + loss * (1-avg_mom)
  24. 142 debias_loss = avg_loss / (1 - avg_mom**batch_num)
  25.  
  26. ~/fastai/courses/dl1/fastai/model.py in step(self, xs, y, epoch)
  27. 48 def step(self, xs, y, epoch):
  28. 49 xtra = []
  29. ---> 50 output = self.m(*xs)
  30. 51 if isinstance(output,tuple): output,*xtra = output
  31. 52 if self.fp16: self.m.zero_grad()
  32.  
  33. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
  34. 355 result = self._slow_forward(*input, **kwargs)
  35. 356 else:
  36. --> 357 result = self.forward(*input, **kwargs)
  37. 358 for hook in self._forward_hooks.values():
  38. 359 hook_result = hook(self, input, result)
  39.  
  40. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/container.py in forward(self, input)
  41. 65 def forward(self, input):
  42. 66 for module in self._modules.values():
  43. ---> 67 input = module(input)
  44. 68 return input
  45. 69
  46.  
  47. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
  48. 355 result = self._slow_forward(*input, **kwargs)
  49. 356 else:
  50. --> 357 result = self.forward(*input, **kwargs)
  51. 358 for hook in self._forward_hooks.values():
  52. 359 hook_result = hook(self, input, result)
  53.  
  54. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/container.py in forward(self, input)
  55. 65 def forward(self, input):
  56. 66 for module in self._modules.values():
  57. ---> 67 input = module(input)
  58. 68 return input
  59. 69
  60.  
  61. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
  62. 355 result = self._slow_forward(*input, **kwargs)
  63. 356 else:
  64. --> 357 result = self.forward(*input, **kwargs)
  65. 358 for hook in self._forward_hooks.values():
  66. 359 hook_result = hook(self, input, result)
  67.  
  68. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/container.py in forward(self, input)
  69. 65 def forward(self, input):
  70. 66 for module in self._modules.values():
  71. ---> 67 input = module(input)
  72. 68 return input
  73. 69
  74.  
  75. ~/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
  76. 355 result = self._slow_forward(*input, **kwargs)
  77. 356 else:
  78. --> 357 result = self.forward(*input, **kwargs)
  79. 358 for hook in self._forward_hooks.values():
  80. 359 hook_result = hook(self, input, result)
  81.  
  82. ~/fastai/courses/dl1/fastai/models/resnext_50_32x4d.py in forward(self, input)
  83. 26 class LambdaReduce(LambdaBase):
  84. 27 def forward(self, input):
  85. ---> 28 return reduce(self.lambda_func,self.forward_prepare(input))
  86. 29
  87. 30
  88.  
  89. ~/fastai/courses/dl1/fastai/models/resnext_50_32x4d.py in <lambda>(x, y)
  90. 292 Lambda(lambda x: x), # Identity,
  91. 293 ),
  92. --> 294 LambdaReduce(lambda x,y: x+y), # CAddTable,
  93. 295 nn.ReLU(),
  94. 296 ),
  95.  
  96. RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCStorage.cu:58
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement