Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

赛题八:paddleviz能力扩展- 暴露给python端反向节点命名优化 #57626

Merged
merged 32 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
260a4f7
[尝试] 给tensor增加一个属性, 这个属性是一个定值 1
qiuwenbogdut Jun 6, 2023
922f79f
暴露gradnode 并构建gradnode新的方法(用来测试)进行暴露给python python端可以访问
qiuwenbogdut Jun 20, 2023
4887161
开发grad_fn、next_functions两个API 并暴露到python端- 做一些规范化处理
qiuwenbogdut Jul 7, 2023
f54aff8
增加一个单元测试
qiuwenbogdut Jul 7, 2023
09e86f5
Merge branch 'develop' into dev_qiu
qiuwenbogdut Jul 7, 2023
fa9384c
优化 code-style
qiuwenbogdut Jul 7, 2023
bef4cc6
Merge branch 'develop' into dev_qiu
qiuwenbogdut Jul 11, 2023
1c3ad39
将单侧文件迁到正确的位置
qiuwenbogdut Jul 11, 2023
d7925f6
优化 code-style
qiuwenbogdut Jul 11, 2023
38a8645
删除无用注释
qiuwenbogdut Jul 12, 2023
1059ae5
解决 __main__ has no attribute
qiuwenbogdut Jul 13, 2023
bcb5730
修改单侧文件
qiuwenbogdut Jul 19, 2023
05e8edf
修改单侧脚本-temp
qiuwenbogdut Jul 20, 2023
ba77d9a
解决 grad_fn next_functions api 接口导致内存异常的问题
qiuwenbogdut Jul 23, 2023
b5ebfaa
修改单测内容
qiuwenbogdut Jul 24, 2023
72d32fa
Merge branch 'develop' into dev_qiu
qiuwenbogdut Jul 24, 2023
fd0c655
解决 code-style 问题
qiuwenbogdut Jul 24, 2023
a442c1c
初版本-增加节点指针值获取接口, 增加打印构建边需要的信息
qiuwenbogdut Aug 31, 2023
ca6a064
增加eager_manual 中反向节点的打印信息
qiuwenbogdut Sep 9, 2023
657412a
不修改原有的日志等级
qiuwenbogdut Sep 14, 2023
c86c61c
删除掉不必要的打印信息
qiuwenbogdut Sep 15, 2023
0fd9e8f
不修改之前的日志等级2
qiuwenbogdut Sep 15, 2023
e6edf3d
增加反向节点地址信息获取, 增加打印边的信息, 不修改原有日志等级
qiuwenbogdut Sep 15, 2023
3160ca4
Merge branch 'develop' into dev_qiu
qiuwenbogdut Sep 15, 2023
9c015dd
优化代码格式
qiuwenbogdut Sep 15, 2023
daa5381
优化代码格式
qiuwenbogdut Sep 15, 2023
7b26f4a
修改格式问题2
qiuwenbogdut Sep 19, 2023
988dece
解决一下日志重复输出的问题
qiuwenbogdut Sep 19, 2023
cec8fa1
优化命名
qiuwenbogdut Sep 22, 2023
81da30c
优化命名 GetPtr
qiuwenbogdut Sep 25, 2023
f8704b3
Merge branch 'develop' into dev_qiu
qiuwenbogdut Sep 25, 2023
17726da
优化代码风格
qiuwenbogdut Sep 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paddle/fluid/eager/grad_node_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ std::vector<std::shared_ptr<GradNodeBase>> GradNodeBase::NextFunctions() {
return next_nodes;
}

uintptr_t GradNodeBase::GetThisPtr() const {
uintptr_t GradNodeBase::GetPtr() const {
return reinterpret_cast<uintptr_t>(this);
}

Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/eager/grad_node_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class GradNodeBase {

std::vector<std::shared_ptr<egr::GradNodeBase>> NextFunctions();

uintptr_t GetThisPtr() const;
uintptr_t GetPtr() const;

/**
* Apply GradientHook
Expand Down
3 changes: 1 addition & 2 deletions paddle/fluid/pybind/pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,7 @@ PYBIND11_MODULE(libpaddle, m) {
[](const std::shared_ptr<egr::GradNodeBase> &self) {
return self->NextFunctions();
})

.def("node_this_ptr", &egr::GradNodeBase::GetThisPtr)
.def("node_ptr", &egr::GradNodeBase::GetPtr)
.def("input_meta",
[](const std::shared_ptr<egr::GradNodeBase> &self) {
return self->InputMeta();
Expand Down