Python torch.utils.ffi._wrap_function() Examples

The following are 30 code examples of torch.utils.ffi._wrap_function(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module torch.utils.ffi , or try the search function .
Example #1
Source File: __init__.py    From cascade-rcnn_Pytorch with MIT License 7 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #2
Source File: __init__.py    From LightNet with MIT License 6 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #3
Source File: __init__.py    From fpn.pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #4
Source File: __init__.py    From RFCN_CoupleNet.pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #5
Source File: __init__.py    From SRN with Apache License 2.0 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #6
Source File: __init__.py    From drn with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #7
Source File: __init__.py    From FPN_Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #8
Source File: __init__.py    From FPN_Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #9
Source File: __init__.py    From FPN_Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #10
Source File: __init__.py    From magnitude with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #11
Source File: __init__.py    From fpn.pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #12
Source File: __init__.py    From FPN_Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #13
Source File: __init__.py    From neural-motifs with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #14
Source File: __init__.py    From neural-motifs with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #15
Source File: __init__.py    From FPN-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #16
Source File: __init__.py    From FPN-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #17
Source File: __init__.py    From FPN-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #18
Source File: __init__.py    From FPN-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #19
Source File: __init__.py    From FPN-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #20
Source File: __init__.py    From DenseFusion with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #21
Source File: __init__.py    From MOTDT with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #22
Source File: __init__.py    From Distilling-Object-Detectors with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #23
Source File: __init__.py    From Distilling-Object-Detectors with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #24
Source File: __init__.py    From Distilling-Object-Detectors with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        locals[symbol] = _wrap_function(fn, _ffi)
        __all__.append(symbol) 
Example #25
Source File: __init__.py    From Distilling-Object-Detectors with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #26
Source File: __init__.py    From Distilling-Object-Detectors with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #27
Source File: __init__.py    From training_results_v0.6 with Apache License 2.0 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #28
Source File: __init__.py    From training_results_v0.6 with Apache License 2.0 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #29
Source File: __init__.py    From Grid-Anchor-based-Image-Cropping-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol) 
Example #30
Source File: __init__.py    From Grid-Anchor-based-Image-Cropping-Pytorch with MIT License 5 votes vote down vote up
def _import_symbols(locals):
    for symbol in dir(_lib):
        fn = getattr(_lib, symbol)
        if callable(fn):
            locals[symbol] = _wrap_function(fn, _ffi)
        else:
            locals[symbol] = fn
        __all__.append(symbol)