Skip to content

Commit

Permalink
add a handy method for ProjectionUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Apr 21, 2021
1 parent 7a68c9c commit e40abb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions performer_pytorch/performer_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def __init__(self, instance, feature_redraw_interval):
self.feature_redraw_interval = feature_redraw_interval
self.register_buffer('calls_since_last_redraw', torch.tensor(0))

def fix_projections_(self):
self.feature_redraw_interval = None

def redraw_projections(self):
model = self.instance

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 = 'performer-pytorch',
packages = find_packages(exclude=['examples']),
version = '1.0.9',
version = '1.0.10',
license='MIT',
description = 'Performer - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit e40abb6

Please sign in to comment.