diff --git a/paddle/fluid/pybind/eager_method.cc b/paddle/fluid/pybind/eager_method.cc index 529876a6605e175dd513a04e94e5e688c32d481b..443dbd155787d7243593ce4ca83187938242a6fd 100644 --- a/paddle/fluid/pybind/eager_method.cc +++ b/paddle/fluid/pybind/eager_method.cc @@ -1745,14 +1745,6 @@ static PyObject* tensor_method_get_rows(TensorObject* self, EAGER_CATCH_AND_THROW_RETURN_NULL } -static PyObject* tensor_methon_element_size(TensorObject* self, - PyObject* args, - PyObject* kwargs) { - EAGER_TRY - return ToPyObject(paddle::experimental::SizeOf(self->tensor.dtype())); - EAGER_CATCH_AND_THROW_RETURN_NULL -} - static PyObject* tensor__reset_grad_inplace_version(TensorObject* self, PyObject* args, PyObject* kwargs) { @@ -2136,10 +2128,6 @@ PyMethodDef variable_methods[] = { (PyCFunction)(void (*)(void))tensor_method_get_rows, METH_VARARGS | METH_KEYWORDS, NULL}, - {"element_size", - (PyCFunction)(void (*)(void))tensor_methon_element_size, - METH_VARARGS | METH_KEYWORDS, - NULL}, {"_reset_grad_inplace_version", (PyCFunction)(void (*)(void))tensor__reset_grad_inplace_version, METH_VARARGS | METH_KEYWORDS,