提交 c5f4fd89 编写于 作者: HansBug's avatar HansBug 😆

refactor(hansbug): use utils in hbutils

上级 19fe5bb8
......@@ -2,9 +2,9 @@ import inspect
from functools import wraps
from typing import Type
from hbutils.reflection import post_process
from treevalue import TreeValue
from treevalue import func_treelize as original_func_treelize
from treevalue.utils import post_process
from .trees import auto_tree
from .wrappers import return_self
......
......@@ -2,8 +2,8 @@ import inspect
from functools import wraps
from types import MethodType
from hbutils.reflection import post_process
from treevalue import method_treelize, TreeValue
from treevalue.utils import post_process
from .trees import auto_tree
from .wrappers import return_self
......
......@@ -5,10 +5,10 @@ from functools import partial
from typing import Optional, Tuple, Callable
from typing import Type
from hbutils.reflection import post_process
from treevalue import func_treelize as original_func_treelize
from treevalue import general_tree_value, TreeValue, typetrans
from treevalue.tree.common import TreeStorage
from treevalue.utils import post_process
from ..utils import replaceable_partial, args_mapping
......
import builtins
import numpy as np
from hbutils.reflection import post_process
from treevalue import TreeValue
from treevalue import func_treelize as original_func_treelize
from treevalue.tree.common import TreeStorage
from treevalue.utils import post_process
from .array import ndarray
from ..common import ireduce, Object, module_func_loader
......
import torch
from treevalue import TreeValue
from treevalue import func_treelize as original_func_treelize
from treevalue.tree.common import TreeStorage
from ..tensor import Tensor
from ...common import auto_tree, module_func_loader
from ...utils import doc_from_base as original_doc_from_base
from ...utils import replaceable_partial, args_mapping
from ...utils import replaceable_partial
func_treelize = replaceable_partial(original_func_treelize, return_type=Tensor)
doc_from_base = replaceable_partial(original_doc_from_base, base=torch)
......
import torch
from hbutils.reflection import post_process
from treevalue import TreeValue
from treevalue.utils import post_process
from .base import doc_from_base, func_treelize, auto_tensor
......
import torch
from hbutils.reflection import post_process
from treevalue import TreeValue
from treevalue.utils import post_process
from .base import doc_from_base, func_treelize, auto_tensor
from ..base import rmreduce, post_reduce, auto_reduce
......
from functools import wraps
import torch
from hbutils.reflection import post_process
from treevalue import TreeValue
from treevalue import func_treelize as original_func_treelize
from treevalue.tree.common import TreeStorage
from treevalue.utils import post_process
from .base import Torch
from ..common import Object, clsmeta, ireduce
......
import numpy as np
import torch as pytorch
from hbutils.reflection import post_process
from treevalue import method_treelize, TreeValue
from treevalue.utils import post_process
from .base import Torch, rmreduce, post_reduce, auto_reduce
from .size import Size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册