jboth's picture
Upload pytorch3d_stub/pytorch3d/vis/__init__.py with huggingface_hub
e0de0ec verified
raw
history blame contribute delete
536 Bytes
"""pytorch3d.vis stub."""
import importlib
import warnings
def __getattr__(name):
if name.startswith("__") and name.endswith("__"):
raise AttributeError(name)
try:
return importlib.import_module(f".{name}", __name__)
except ImportError:
pass
warnings.warn(f"pytorch3d.vis stub: {name} not implemented", stacklevel=2)
class _Dummy:
def __init__(self, *a, **kw): pass
def __call__(self, *a, **kw): return None
_Dummy.__name__ = _Dummy.__qualname__ = name
return _Dummy