mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
14 lines
458 B
Python
14 lines
458 B
Python
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
import contextlib
|
|
|
|
@contextlib.contextmanager
|
|
def DlopenGuard():
|
|
# This is a stub for setting up special tricks around python extensions
|
|
# loading. For example, it might do
|
|
# sys.setdlopenflags(DLFCN.RTLD_GLOBAL | DLFCN.RTLD_NOW)
|
|
# which might be required in some setups of python
|
|
yield
|