Files
dmlc--dgl/python/dgl/storages/__init__.py
T
2026-07-13 13:35:51 +08:00

11 lines
327 B
Python

"""Feature storage classes for DataLoading"""
from .. import backend as F
from .base import *
from .numpy import *
# Defines the name TensorStorage
if F.get_preferred_backend() == "pytorch":
from .pytorch_tensor import PyTorchTensorStorage as TensorStorage
else:
from .tensor import BaseTensorStorage as TensorStorage