Skip to content

Commit

Permalink
update vlog level (PaddlePaddle#70506)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyfncg authored Dec 27, 2024
1 parent 2e2b3de commit a2769ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions paddle/fluid/pybind/op_function_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ void CastPyArg2AttrIRBlock(PyObject* obj,
const std::string& key,
const std::string& op_type,
ssize_t arg_pos) {
VLOG(1) << "After Process pir::Block*";
VLOG(3) << "After Process pir::Block*";
::pybind11::detail::instance* inst =
(::pybind11::detail::instance*)obj; // NOLINT
void** vh = inst->simple_layout ? inst->simple_value_holder
Expand All @@ -1004,7 +1004,7 @@ void CastPyArg2AttrIRProgram(PyObject* obj,
const std::string& key,
const std::string& op_type,
ssize_t arg_pos) {
VLOG(1) << "After Process pir::Program*";
VLOG(3) << "After Process pir::Program*";
const std::shared_ptr<::pir::Program> program =
::py::handle(obj).cast<std::shared_ptr<::pir::Program>>();
attrs[key] = program;
Expand Down Expand Up @@ -1038,7 +1038,7 @@ void CastPyArg2AttrValues(PyObject* obj,
((PyTypeObject*)obj->ob_type)->tp_name)); // NOLINT
}
attrs[key] = results;
VLOG(1) << "Pybind: Cast " << results.size() << " Value Finished.";
VLOG(4) << "Pybind: Cast " << results.size() << " Value Finished.";
}

void ConstructAttrMapFromPyArgs(
Expand All @@ -1059,7 +1059,7 @@ void ConstructAttrMapFromPyArgs(

PyObject* obj = nullptr;
for (ssize_t arg_pos = attr_start; arg_pos < attr_end; arg_pos += 2) {
VLOG(1) << "Start Process " << arg_pos;
VLOG(5) << "Start Process " << arg_pos;
Py_ssize_t key_len = 0;
const char* key_ptr = nullptr;
obj = PyTuple_GET_ITEM(args, arg_pos);
Expand All @@ -1075,7 +1075,7 @@ void ConstructAttrMapFromPyArgs(
}

std::string key(key_ptr, (size_t)key_len); // NOLINT
VLOG(1) << "Start Process " << key;
VLOG(5) << "Start Process " << key;
auto iter = attr_type_map->find(key);
if (iter == attr_type_map->end()) {
continue;
Expand Down Expand Up @@ -1182,7 +1182,7 @@ void ConstructAttrMapForRunProgram(

PyObject* obj = nullptr;
for (ssize_t arg_pos = attr_start; arg_pos < attr_end; arg_pos += 2) {
VLOG(1) << "Start Process " << arg_pos;
VLOG(3) << "Start Process " << arg_pos;
Py_ssize_t key_len = 0;
const char* key_ptr = nullptr;
obj = PyTuple_GET_ITEM(args, arg_pos);
Expand All @@ -1196,7 +1196,7 @@ void ConstructAttrMapForRunProgram(
((PyTypeObject*)obj->ob_type)->tp_name)); // NOLINT
}
std::string_view key_view(key_ptr, static_cast<size_t>(key_len));
VLOG(1) << "Start Process " << key_view;
VLOG(3) << "Start Process " << key_view;
obj = PyTuple_GET_ITEM(args, arg_pos + 1);
auto it = kAttrFuncMap.find(std::string(key_view));
if (it != kAttrFuncMap.end()) {
Expand Down

0 comments on commit a2769ae

Please sign in to comment.