mirror of
https://github.com/zhigang1992/fastai.git
synced 2026-04-29 10:04:51 +08:00
Correct property typo (self.data.path)
I got an error when I ran the tutorial code of deep learning 1. It said that self.data_path was not defined, so I looked into learner.py and saw that on the line before this line, there was self.data.path used instead of self.data_path, so I believe that should be corrected.
This commit is contained in:
@@ -34,7 +34,7 @@ class Learner():
|
||||
self.clip = None
|
||||
self.opt_fn = opt_fn or SGD_Momentum(0.9)
|
||||
self.tmp_path = tmp_name if os.path.isabs(tmp_name) else os.path.join(self.data.path, tmp_name)
|
||||
self.models_path = models_name if os.path.isabs(models_name) else os.path.join(self.data_path, models_name)
|
||||
self.models_path = models_name if os.path.isabs(models_name) else os.path.join(self.data.path, models_name)
|
||||
os.makedirs(self.tmp_path, exist_ok=True)
|
||||
os.makedirs(self.models_path, exist_ok=True)
|
||||
self.crit = crit if crit else self._get_crit(data)
|
||||
|
||||
Reference in New Issue
Block a user