Skip to content

Commit

Permalink
* 0.4.5
Browse files Browse the repository at this point in the history
* Bug fix in verbosity level 2 in train
  • Loading branch information
RoyToluna committed Apr 24, 2022
1 parent a141660 commit d29075d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

0.4.5 (24/04/2022)
-----------------
* Bug fix in verbosity level 2 in train


0.4.4 (17/03/2022)
-----------------
* Verbosity change in torch_utils
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ There are 2 types of ``lpd`` packagaes available
pip install lpd-nodeps
```

<b>[v0.4.4-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
* Verbosity change in torch_utils
<b>[v0.4.5-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
* Bug fix in verbosity level 2 in train


Previously on lpd:
* Verbosity change in torch_utils
* Fix to PositionalEncoding to be batch first
* Minor change to MatMul2D, use torch.matmul instead of torch.bmm
* Bug fix when saving full trainer that has tensorboard callback
Expand Down
6 changes: 3 additions & 3 deletions lpd/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _tqdm_description(self, loop, stats):
else:
loop.set_postfix(loss=stats_result.loss)

def _print_verbos_2(self, stats, verbose):
def _print_verbose_2(self, stats, verbose):
if verbose != 2:
return
desc = self._get_epoch_description()
Expand All @@ -169,7 +169,7 @@ def _print_verbos_2(self, stats, verbose):
metrics_str = f', metrics={stats_result.metrics}'
else:
metrics_str = ''
print(f'{desc}, loss={stats_result.loss}{stats_result.metrics_str}')
print(f'{desc}, loss={stats_result.loss}{metrics_str}')

def _prepare_batch(self, batch):
if self.state == State.PREDICT:
Expand Down Expand Up @@ -273,7 +273,7 @@ def _fwd_pass_train(self, verbose):
last_data=self._last_data[State.TRAIN],
verbose=verbose)

self._print_verbos_2(self.train_stats, verbose)
self._print_verbose_2(self.train_stats, verbose)

def _invoke_callbacks(self):
if self._stopped:
Expand Down
4 changes: 2 additions & 2 deletions misc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Steps:
>> python setup-nodeps.py bdist_wheel -d .
Publish pypi package cmd:
>> pipenv shell
>> twine upload lpd-0.4.4-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.4-py3-none-any.whl
>> twine upload lpd-0.4.5-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.5-py3-none-any.whl
2 changes: 1 addition & 1 deletion setup-nodeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

setup(
name='lpd-nodeps',
version='0.4.4',
version='0.4.5',
description='A Fast, Flexible Trainer with Callbacks and Extensions for PyTorch',
long_description_content_type='text/markdown',
long_description=README_md,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

setup(
name='lpd',
version='0.4.4',
version='0.4.5',
description='A Fast, Flexible Trainer with Callbacks and Extensions for PyTorch',
long_description_content_type='text/markdown',
long_description=README_md,
Expand Down

0 comments on commit d29075d

Please sign in to comment.