Skip to content

Commit

Permalink
simple
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwolf committed Feb 18, 2019
1 parent b450a7f commit ab7f5d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pytorch_pretrained_bert/tokenization_gpt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
except ImportError:
# Just a dummy decorator to get the checks to run on python2
# because honestly I don't want to support a byte-level unicode BPE tokenizer on python 2 right now.
def lru_cache(func):
def func_wrapper(*inputs, **args):
return func(inputs, args)
return func_wrapper
def lru_cache():
return lambda func: func

from .file_utils import cached_path

Expand Down

0 comments on commit ab7f5d2

Please sign in to comment.