Dev/fix ascend string (#30749)

Dev/fix ascend string
revert-31562-mean
Leo Chen 5 years ago committed by GitHub
parent 6eabbc8076
commit 88dfd067bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,7 @@ namespace framework {
typedef ge::Graph AscendGraphDesc;
#ifdef PADDLE_WITH_ASCEND_STRING
using AscendString = AscendString;
using AscendString = ge::AscendString;
#else
using AscendString = std::string;
#endif

@ -269,7 +269,7 @@ void BindAscendGraph(py::module *m) {
#ifdef PADDLE_WITH_ASCEND_STRING
.def("register_call_back_func",
static_cast<ge::Status (ge::Session::*)( // NOLINT
const char *, const ge::Session::pCallBackFunc &)>(
const char *, const ge::session::pCallBackFunc &)>(
&ge::Session::RegisterCallBackFunc))
#else
.def("register_call_back_func",

Loading…
Cancel
Save