Skip to content

Commit

Permalink
add flag to signal NM integration is active (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfineran authored Jan 26, 2022
1 parent c7b33f0 commit 410f9db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2779,6 +2779,9 @@ class _LazyModule(_BaseLazyModule):
__file__ = globals()["__file__"]
__path__ = [os.path.dirname(__file__)]

# flag to signal NM integration is active
NM_INTEGRATED = True

def _get_module(self, module_name: str):
return importlib.import_module("." + module_name, self.__name__)

Expand Down

0 comments on commit 410f9db

Please sign in to comment.