Skip to content

Commit

Permalink
safe log
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 2, 2024
1 parent 35452f4 commit 48afc51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'x-transformers',
packages = find_packages(exclude=['examples']),
version = '1.42.21',
version = '1.42.22',
license='MIT',
description = 'X-Transformers - Pytorch',
author = 'Phil Wang',
Expand Down
2 changes: 1 addition & 1 deletion x_transformers/x_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ def forward(
# laser

if self.laser:
out = out.log() + values_max
out = log(out) + values_max

# store the values for resformer or Neutreno

Expand Down

0 comments on commit 48afc51

Please sign in to comment.