changh95's picture
Add Tenstorrent Blackhole tt-nn port
ba7051a verified
Raw History Blame Contribute Delete
880 Bytes
"""
A collection of useful functions for 3D computer vision and graphics researchers in Python.
- Use `utils3d.{function}` to call the function automatically selecting the backend based on the input type (Numpy ndarray or Pytorch tensor).
- Use `utils3d.{np/pt}.{function}` to specifically call the Numpy or Pytorch version.
"""
import importlib
from typing import TYPE_CHECKING
from .helpers import lazy_import, lazy_import_from
try:
from .interface import *
except ImportError:
pass
__all__ = ['numpy', 'torch', 'np', 'pt']
lazy_import(globals(), '.numpy', 'numpy')
lazy_import(globals(), '.numpy', 'np')
lazy_import(globals(), '.torch', 'torch')
lazy_import(globals(), '.torch', 'pt')
if TYPE_CHECKING:
from . import numpy
from . import numpy as np # short alias
from . import torch
from . import torch as pt # short alias
from . import io