From 8a4aee185cb8d0ad9e844364a02b7087e2ace21c Mon Sep 17 00:00:00 2001 From: Feiyu Chan Date: Sat, 1 Apr 2023 03:22:45 +0800 Subject: [PATCH] enable setting double attribute into opdesc (#52406) --- paddle/fluid/pybind/protobuf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/protobuf.cc b/paddle/fluid/pybind/protobuf.cc index d74be76f0b0..9661d552414 100644 --- a/paddle/fluid/pybind/protobuf.cc +++ b/paddle/fluid/pybind/protobuf.cc @@ -372,7 +372,7 @@ void BindOpDesc(pybind11::module *m) { .def("_set_int32_attr", &pd::OpDesc::SetPlainAttr) .def("_set_int64_attr", &pd::OpDesc::SetPlainAttr) .def("_set_float32_attr", &pd::OpDesc::SetPlainAttr) - // .def("_set_float64_attr", &pd::OpDesc::SetPlainAttr) + .def("_set_float64_attr", &pd::OpDesc::SetPlainAttr) .def("_set_str_attr", &pd::OpDesc::SetPlainAttr) .def("_set_bools_attr", &pd::OpDesc::SetPlainAttr>) -- GitLab