mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
13 lines
458 B
Python
13 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
|