Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDILab开源决策智能平台
DI-treetensor
提交
c5f4fd89
D
DI-treetensor
项目概览
OpenDILab开源决策智能平台
/
DI-treetensor
10 个月 前同步成功
通知
40
Star
172
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DI-treetensor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c5f4fd89
编写于
10月 21, 2021
作者:
HansBug
😆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(hansbug): use utils in hbutils
上级
19fe5bb8
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
10 addition
and
12 deletion
+10
-12
requirements.txt
requirements.txt
+1
-0
treetensor/common/module.py
treetensor/common/module.py
+1
-1
treetensor/common/proxy.py
treetensor/common/proxy.py
+1
-1
treetensor/common/trees.py
treetensor/common/trees.py
+1
-1
treetensor/numpy/funcs.py
treetensor/numpy/funcs.py
+1
-1
treetensor/torch/funcs/base.py
treetensor/torch/funcs/base.py
+1
-4
treetensor/torch/funcs/operation.py
treetensor/torch/funcs/operation.py
+1
-1
treetensor/torch/funcs/reduction.py
treetensor/torch/funcs/reduction.py
+1
-1
treetensor/torch/size.py
treetensor/torch/size.py
+1
-1
treetensor/torch/tensor.py
treetensor/torch/tensor.py
+1
-1
未找到文件。
requirements.txt
浏览文件 @
c5f4fd89
treevalue
>=0.1.0
torch
>=1.3.1,<=1.9.0
hbutils
>=0.0.1
numpy
treetensor/common/module.py
浏览文件 @
c5f4fd89
...
...
@@ -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
...
...
treetensor/common/proxy.py
浏览文件 @
c5f4fd89
...
...
@@ -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
...
...
treetensor/common/trees.py
浏览文件 @
c5f4fd89
...
...
@@ -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
...
...
treetensor/numpy/funcs.py
浏览文件 @
c5f4fd89
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
...
...
treetensor/torch/funcs/base.py
浏览文件 @
c5f4fd89
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
)
...
...
treetensor/torch/funcs/operation.py
浏览文件 @
c5f4fd89
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
...
...
treetensor/torch/funcs/reduction.py
浏览文件 @
c5f4fd89
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
...
...
treetensor/torch/size.py
浏览文件 @
c5f4fd89
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
...
...
treetensor/torch/tensor.py
浏览文件 @
c5f4fd89
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录