__init__.py 384 Bytes
Newer Older
VVsssssk's avatar
VVsssssk committed
1
# Copyright (c) OpenMMLab. All rights reserved.
2
from .overwrite_spconv import register_spconv2
VVsssssk's avatar
VVsssssk committed
3
4
5
6
7
8

try:
    import spconv
except ImportError:
    IS_SPCONV2_AVAILABLE = False
else:
9
    if hasattr(spconv, '__version__') and spconv.__version__ >= '2.0.0':
VVsssssk's avatar
VVsssssk committed
10
11
12
13
14
        IS_SPCONV2_AVAILABLE = register_spconv2()
    else:
        IS_SPCONV2_AVAILABLE = False

__all__ = ['IS_SPCONV2_AVAILABLE']