Skip to content

Commit

Permalink
Fix disable_attention_slicing in pipelines (open-mmlab#498)
Browse files Browse the repository at this point in the history
Fix `disable_attention_slicing` in pipelines.
  • Loading branch information
pcuenca committed Sep 13, 2022
1 parent 721e017 commit f7cd6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def disable_attention_slicing(self):
back to computing attention in one step.
"""
# set slice_size = `None` to disable `set_attention_slice`
self.enable_attention_slice(None)
self.enable_attention_slicing(None)

@torch.no_grad()
def __call__(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def disable_attention_slicing(self):
back to computing attention in one step.
"""
# set slice_size = `None` to disable `set_attention_slice`
self.enable_attention_slice(None)
self.enable_attention_slicing(None)

@torch.no_grad()
def __call__(
Expand Down

0 comments on commit f7cd6b8

Please sign in to comment.