Skip to content

Commit

Permalink
fix an issue with inplace detach, release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 25, 2022
1 parent 4bb3669 commit 35198fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch==1.10.0
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python setup.py pytest
2 changes: 1 addition & 1 deletion invariant_point_attention/invariant_point_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def forward(
rotations = quaternion_to_matrix(quaternions)

if self.detach_rotations:
rotations.detach_()
rotations = rotations.detach()

x = block(
x,
Expand Down
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 = 'invariant-point-attention',
packages = find_packages(),
version = '0.2.1',
version = '0.2.2',
license='MIT',
description = 'Invariant Point Attention',
long_description_content_type = 'text/markdown',
Expand Down

0 comments on commit 35198fb

Please sign in to comment.