未验证 提交 8a4aee18 编写于 作者: F Feiyu Chan 提交者: GitHub

enable setting double attribute into opdesc (#52406)

上级 7b53923e
......@@ -372,7 +372,7 @@ void BindOpDesc(pybind11::module *m) {
.def("_set_int32_attr", &pd::OpDesc::SetPlainAttr<int>)
.def("_set_int64_attr", &pd::OpDesc::SetPlainAttr<int64_t>)
.def("_set_float32_attr", &pd::OpDesc::SetPlainAttr<float>)
// .def("_set_float64_attr", &pd::OpDesc::SetPlainAttr<double>)
.def("_set_float64_attr", &pd::OpDesc::SetPlainAttr<double>)
.def("_set_str_attr", &pd::OpDesc::SetPlainAttr<std::string>)
.def("_set_bools_attr", &pd::OpDesc::SetPlainAttr<std::vector<bool>>)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册