未验证 提交 88dfd067 编写于 作者: L Leo Chen 提交者: GitHub

Dev/fix ascend string (#30749)

Dev/fix ascend string
上级 6eabbc80
...@@ -40,7 +40,7 @@ namespace framework { ...@@ -40,7 +40,7 @@ namespace framework {
typedef ge::Graph AscendGraphDesc; typedef ge::Graph AscendGraphDesc;
#ifdef PADDLE_WITH_ASCEND_STRING #ifdef PADDLE_WITH_ASCEND_STRING
using AscendString = AscendString; using AscendString = ge::AscendString;
#else #else
using AscendString = std::string; using AscendString = std::string;
#endif #endif
......
...@@ -269,7 +269,7 @@ void BindAscendGraph(py::module *m) { ...@@ -269,7 +269,7 @@ void BindAscendGraph(py::module *m) {
#ifdef PADDLE_WITH_ASCEND_STRING #ifdef PADDLE_WITH_ASCEND_STRING
.def("register_call_back_func", .def("register_call_back_func",
static_cast<ge::Status (ge::Session::*)( // NOLINT static_cast<ge::Status (ge::Session::*)( // NOLINT
const char *, const ge::Session::pCallBackFunc &)>( const char *, const ge::session::pCallBackFunc &)>(
&ge::Session::RegisterCallBackFunc)) &ge::Session::RegisterCallBackFunc))
#else #else
.def("register_call_back_func", .def("register_call_back_func",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册