diff --git a/paddle/fluid/pybind/eager_method.cc b/paddle/fluid/pybind/eager_method.cc index 0092bccba7028411170fae96ebec68d13e71ab49..3f023d36490a7d073589e97561534871329c1b28 100644 --- a/paddle/fluid/pybind/eager_method.cc +++ b/paddle/fluid/pybind/eager_method.cc @@ -930,7 +930,7 @@ static PyObject* tensor__getitem_index_not_tensor(TensorObject* self, // with FLAGS_set_to_1d=True. In this case, one `None` should be pop out, // otherwise the output shape will be not correct. if (static_cast(decrease_axis.size()) == tensor->dims().size()) { - VLOG(0) + VLOG(1) << "Warning: In Tensor '__getitem__', if the number of scalar " "elements " "in the index is equal to the rank of the Tensor, the output " diff --git a/paddle/fluid/pybind/imperative.cc b/paddle/fluid/pybind/imperative.cc index 52a05dc0ffcebac48997f7c33b574f3297c6d0e3..0ccac2ff23661202b68e0d7af110ba83d22d3a2b 100644 --- a/paddle/fluid/pybind/imperative.cc +++ b/paddle/fluid/pybind/imperative.cc @@ -1078,7 +1078,7 @@ void BindImperative(py::module *m_ptr) { // not correct. if (static_cast(decrease_axis.size()) == tensor->dims().size()) { - VLOG(0) << "Warning: In Tensor '__getitem__', if the number " + VLOG(1) << "Warning: In Tensor '__getitem__', if the number " "of scalar " "elements " "in the index is equal to the rank of the Tensor, "