Skip to content

Commit

Permalink
* 0.4.3
Browse files Browse the repository at this point in the history
* small fix
  • Loading branch information
RoyToluna committed Nov 3, 2021
1 parent 656a15a commit fd2e07f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Change Log
==========


0.4.2 (03/11/2021)
0.4.3 (03/11/2021)
-----------------
* Fix to PositionalEncoding to be batch first

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ There are 2 types of ``lpd`` packagaes available
pip install lpd-nodeps
```

<b>[v0.4.2-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
<b>[v0.4.3-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
* Fix to PositionalEncoding to be batch first


Expand Down
2 changes: 1 addition & 1 deletion lpd/extensions/custom_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _create_positional_encoding(self):
self.register_buffer('pe', pe)

def forward(self, inputs):
inputs = inputs + self.pe[:inputs.size(1), :]
inputs = inputs + self.pe[:inputs.size(1), :].unsqueeze(0)
return self.dropout(inputs)

class TransformerEncoderStack(nn.Module):
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.2-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.2-py3-none-any.whl
>> twine upload lpd-0.4.3-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.3-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.2',
version='0.4.3',
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.2',
version='0.4.3',
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 fd2e07f

Please sign in to comment.