Skip to content

Commit

Permalink
fix for issue fastai#60
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubLangr committed Jan 31, 2020
1 parent 94d219e commit 2afcfcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastai2/callback/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def begin_fit(self):

items = [self.dls.valid_ds.items[i] for i in idxs]
test_tls = [tl._new(items, split_idx=1) for tl in self.dls.valid_ds.tls]
self.valid_dl = self.dls.valid_dl.new(Datasets(tls=test_tls), bs=self.n_preds)
self.valid_dl = DataLoader(self.dls.valid, bs=self.n_preds)

def after_batch(self):
"Log hyper-parameters and training loss"
Expand Down
2 changes: 1 addition & 1 deletion nbs/70_callback.wandb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"\n",
" items = [self.dls.valid_ds.items[i] for i in idxs]\n",
" test_tls = [tl._new(items, split_idx=1) for tl in self.dls.valid_ds.tls]\n",
" self.valid_dl = self.dls.valid_dl.new(Datasets(tls=test_tls), bs=self.n_preds)\n",
" self.valid_dl = DataLoader(self.dls.valid, bs=self.n_preds)\n",
"\n",
" def after_batch(self):\n",
" \"Log hyper-parameters and training loss\"\n",
Expand Down

0 comments on commit 2afcfcc

Please sign in to comment.