chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:36:30 +08:00
commit 55ab4e4a73
473 changed files with 72932 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
try:
from .common import compose_pipes
from .common import to_bool_tensor
from .common import to_long_tensor
from .common import to_tensor
from .normalize import min_max_scaler
from .normalize import norm_ft
except:
print(
"Warning raise in module:datapipe. Please install Pytorch before you use"
" functions related to nueral network"
)
from .loader import load_from_json
from .loader import load_from_pickle
from .loader import load_from_txt
# __all__ = [
# "compose_pipes",
# "norm_ft",
# "min_max_scaler",
# "to_tensor",
# "to_bool_tensor",
# "to_long_tensor",
# "load_from_pickle",
# "load_from_json",
# "load_from_txt",
# ]