diff --git a/examples/text/ernie-3.0/cpp/seq_cls_infer.cc b/examples/text/ernie-3.0/cpp/seq_cls_infer.cc index 6ec738b07..87848ce59 100755 --- a/examples/text/ernie-3.0/cpp/seq_cls_infer.cc +++ b/examples/text/ernie-3.0/cpp/seq_cls_infer.cc @@ -63,6 +63,7 @@ bool CreateRuntimeOption(fastdeploy::RuntimeOption* option) { if (FLAGS_device == "kunlunxin") { option->UseKunlunXin(); + option->UsePaddleLiteBackend(); return true; } else if (FLAGS_device == "gpu") { option->UseGpu(); diff --git a/fastdeploy/function/transpose.h b/fastdeploy/function/transpose.h index 9bae6e66c..ffbd175de 100644 --- a/fastdeploy/function/transpose.h +++ b/fastdeploy/function/transpose.h @@ -17,6 +17,10 @@ #include "fastdeploy/core/fd_tensor.h" namespace fastdeploy { + +/** \brief All C++ FDTensor Operation APIs are defined inside this namespace + * + */ namespace function { /** Excute the transpose operation for input FDTensor along given dims. @param x The input tensor.