-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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能力扩展——Tensor信息展示 #56837
Changes from 27 commits
260a4f7
922f79f
4887161
f54aff8
09e86f5
fa9384c
bef4cc6
1c3ad39
d7925f6
38a8645
1059ae5
bcb5730
05e8edf
ba77d9a
b5ebfaa
72d32fa
fd0c655
a442c1c
ca6a064
657412a
c86c61c
0fd9e8f
e6edf3d
3160ca4
9c015dd
daa5381
7b26f4a
988dece
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -459,6 +459,9 @@ SyncBatchNormGradNode::operator()( | |
output_str += output_bias_grad_str; | ||
VLOG(4) << paddle::string::Sprintf( | ||
INPUT_PRINT_TEMPLATE, input_str, output_str); | ||
VLOG(6) << "gradnode_ptr = " << this; | ||
VLOG(6) << paddle::string::Sprintf( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个VLog的级别是不能改的。必须是4 |
||
INPUT_PRINT_TEMPLATE, input_str, output_str); | ||
} | ||
|
||
// Return | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,6 +200,7 @@ class {} : public egr::GradNodeBase {{ | |
GRAD_FUNCTION_TEMPLATE = """ | ||
paddle::small_vector<std::vector<paddle::Tensor>, egr::kSlotSmallVectorSize> {}::operator()(paddle::small_vector<std::vector<paddle::Tensor>, egr::kSlotSmallVectorSize>& grads, bool create_graph, bool is_new_grad) {{ | ||
VLOG(3) << \"Running AD API GRAD: \" << \"{}\"; | ||
|
||
// Fill Zero For GradIn Tensors | ||
{} | ||
// Apply Gradient Hooks | ||
|
@@ -228,7 +229,9 @@ class {} : public egr::GradNodeBase {{ | |
// Create Grad Node | ||
{} | ||
VLOG(4) << \"Finish AD API GRAD: {}"; | ||
VLOG(6) << "gradnode_ptr = " << this; | ||
// LOG IF DEBUG | ||
|
||
{} | ||
// Return | ||
{} | ||
|
@@ -290,6 +293,7 @@ class {} : public egr::GradNodeBase {{ | |
const char* INPUT_PRINT_TEMPLATE = \"{{ Input: [%s], \\n Output: [%s] }} \"; | ||
{} | ||
VLOG(4) << paddle::string::Sprintf(INPUT_PRINT_TEMPLATE, input_str, output_str); | ||
VLOG(6) << paddle::string::Sprintf(INPUT_PRINT_TEMPLATE, input_str, output_str); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个VLog的级别是不能改的。必须是4 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这两行看上去一样,新加一个VLOG(6)的作用是什么呢? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是的, 确实存在重复打印的问题, 这边修改一下 |
||
}} | ||
""" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -870,6 +870,8 @@ PYBIND11_MODULE(libpaddle, m) { | |
[](const std::shared_ptr<egr::GradNodeBase> &self) { | ||
return self->NextFunctions(); | ||
}) | ||
|
||
.def("node_this_ptr", &egr::GradNodeBase::GetThisPtr) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wanghuancoder 欢哥 命名这块有没有什么建议? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 要不改成.def("node_ptr", &egr::GradNodeBase::GetPtr)吧 |
||
.def("input_meta", | ||
[](const std::shared_ptr<egr::GradNodeBase> &self) { | ||
return self->InputMeta(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个VLog的级别是不能改的。必须是4