Skip to content

Commit

Permalink
Fix context creation
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Jan 21, 2022
1 parent 245f051 commit 6be596d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/adapters/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def wrap(cls, f):

@functools.wraps(f)
def wrapper_func(self, *args, **kwargs):
context = cls()
context = cls(self)
cls.get_contexts().append(context)
results = f(self, *args, **kwargs)
cls.get_contexts().pop()
Expand Down

0 comments on commit 6be596d

Please sign in to comment.