Skip to content

Commit

Permalink
Bug fix for wandb callback
Browse files Browse the repository at this point in the history
  • Loading branch information
m-gopichand committed Aug 23, 2024
1 parent d53ed05 commit c40cb8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nbs/04_learner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@
" def __init__(self, model, dls=(0,), loss_func=F.mse_loss, lr=0.1, cbs=None, opt_func=optim.Adam):\n",
" cbs = fc.L(cbs)\n",
" fc.store_attr()\n",
" self.iter_total = 0\n",
"\n",
" @contextmanager\n",
" def cb_ctx(self, nm):\n",
Expand All @@ -696,6 +697,7 @@
" self.backward()\n",
" self.step()\n",
" self.zero_grad()\n",
" self.iter_total += 1\n",
" \n",
" def fit(self, n_epochs=1, train=True, valid=True, cbs=None, lr=None):\n",
" cbs = fc.L(cbs)\n",
Expand Down
2 changes: 1 addition & 1 deletion rapidai/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.6"
__version__ = "0.0.7"
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DEFAULT]
repo = rapidai
lib_name = rapidai
version = 0.0.6
version = 0.0.7
min_python = 3.9
license = apache2
black_formatting = False
Expand Down

0 comments on commit c40cb8d

Please sign in to comment.