提交 f6bcab79 编写于 作者: Y yanghongtian

rename HW_ASCEND_NPU_DEPS

上级 6d864140
......@@ -68,7 +68,7 @@ if (WITH_TESTING)
X86_DEPS ${x86_kernels}
XPU_DEPS ${xpu_kernels}
BM_DEPS ${bm_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels}
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels}
MLU_DEPS ${mlu_kernels})
endif()
if(LITE_WITH_FPGA)
......@@ -110,7 +110,7 @@ if (NOT LITE_ON_TINY_PUBLISH)
BM_DEPS ${bm_kernels}
CL_DEPS ${opencl_kernels}
FPGA_DEPS ${fpga_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels})
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels})
endif()
# for light api
......@@ -132,7 +132,7 @@ lite_cc_library(light_api SRCS light_api.cc
CL_DEPS ${opencl_kernels}
FPGA_DEPS ${fpga_kernels}
BM_DEPS ${bm_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels})
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels})
include(ExternalProject)
set(LITE_DEMO_INSTALL_DIR "${THIRD_PARTY_PATH}/inference_demo" CACHE STRING
......@@ -151,7 +151,7 @@ if(WITH_TESTING)
CL_DEPS ${opencl_kernels}
FPGA_DEPS ${fpga_kernels}
BM_DEPS ${bm_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels}
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels}
EXCLUDE_COMPILE_DEPS "ON"
ARGS --model_dir=${LITE_MODEL_DIR}/lite_naive_model
--optimized_model=${LITE_MODEL_DIR}/lite_naive_model_opt SERIAL)
......@@ -299,7 +299,7 @@ lite_cc_test(test_apis SRCS apis_test.cc
FPGA_DEPS ${fpga_kernels}
BM_DEPS ${bm_kernels}
MLU_DEPS ${mlu_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels}
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels}
ARGS --model_dir=${LITE_MODEL_DIR}/lite_naive_model
--optimized_model=${LITE_MODEL_DIR}/lite_naive_model_opt SERIAL)
......@@ -338,7 +338,7 @@ lite_cc_test(test_paddle_api SRCS paddle_api_test.cc DEPS paddle_api_full paddle
FPGA_DEPS ${fpga_kernels}
BM_DEPS ${bm_kernels}
MLU_DEPS ${mlu_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels}
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels}
ARGS --model_dir=${LITE_MODEL_DIR}/lite_naive_model SERIAL)
if (WITH_TESTING)
add_dependencies(test_paddle_api extern_lite_download_lite_naive_model_tar_gz)
......
......@@ -17,7 +17,7 @@ lite_cc_test(test_gen_code SRCS gen_code_test.cc
NPU_DEPS ${npu_kernels}
XPU_DEPS ${xpu_kernels}
CL_DEPS ${opencl_kernels}
HWAscendNPU_DEPS ${hw_ascend_npu_kernels}
HW_ASCEND_NPU_DEPS ${hw_ascend_npu_kernels}
FPGA_DEPS ${fpga_kernels}
EXCLUDE_COMPILE_DEPS "ON"
ARGS --optimized_model=${LITE_MODEL_DIR}/lite_naive_model_opt SERIAL)
......
......@@ -15,3 +15,5 @@ lite_cc_library(subgraph_bridge_graph_hw_ascend_npu
set(hw_ascend_npu_subgraph_bridges
subgraph_bridge_graph_hw_ascend_npu
CACHE INTERNAL "hw_ascend_npu_subgraph_bridges")
lite_cc_library(subgraph_bridge_act_op_hw_ascend_npu SRCS act_op.cc DEPS ${hw_ascend_npu_subgraph_bridge_deps})
......@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <all_ops.h>
#include "lite/kernels/hw_ascend_npu/bridges/graph.h"
#include "lite/kernels/hw_ascend_npu/bridges/utility.h"
#include "lite/kernels/npu/bridges/registry.h"
......@@ -124,7 +125,7 @@ REGISTER_SUBGRAPH_BRIDGE(
REGISTER_SUBGRAPH_BRIDGE(
relu_clipped,
kNPU,
paddle::lite::subgraph::npu::ActConverter<ge::Activation>);
paddle::lite::subgraph::hw_ascend_npu::ActConverter<ge::Activation>);
REGISTER_SUBGRAPH_BRIDGE(
relu6,
kHWAscendNPU,
......@@ -132,7 +133,7 @@ REGISTER_SUBGRAPH_BRIDGE(
REGISTER_SUBGRAPH_BRIDGE(
leaky_relu,
kHWAscendNPU,
paddle::lite::subgraph::npu::ActConverter<ge::Activation>);
paddle::lite::subgraph::hw_ascend_npu::ActConverter<ge::Activation>);
REGISTER_SUBGRAPH_BRIDGE(
abs,
kHWAscendNPU,
......
......@@ -291,6 +291,8 @@ TEST(Activation_relu, precision) {
place = TARGET(kARM);
#elif defined(LITE_WITH_XPU)
place = TARGET(kXPU);
#elif defined(LITE_WITH_HW_ASCEND_NPU)
place = TARGET(kHWAscendNPU);
#else
return;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册