From 82271e3e88bbf581c67f4de45bd7b2c979d32f02 Mon Sep 17 00:00:00 2001 From: jackzhang235 Date: Wed, 18 Mar 2020 05:51:09 +0000 Subject: [PATCH] fix little error --- lite/kernels/mlu/bridges/graph.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lite/kernels/mlu/bridges/graph.h b/lite/kernels/mlu/bridges/graph.h index b22af08baa..f80b55c00f 100644 --- a/lite/kernels/mlu/bridges/graph.h +++ b/lite/kernels/mlu/bridges/graph.h @@ -209,10 +209,6 @@ class Graph { nodes_[tensor_name]->mlu_tensor(), alloc_data, false)); } else if (fp_type_ == CNML_DATA_FLOAT16) { void* data_fp16 = RegisterConstData<::paddle::lite::fluid::float16>(len); - // for (size_t i = 0; i < len; ++i) { - // static_cast<::paddle::lite::fluid::float16*>(data_fp16)[i] - // = static_cast<::paddle::lite::fluid::float16>(data[i]); - // } CNRT_CALL( cnrtCastDataType(const_cast(static_cast(data)), CNRT_FLOAT32, -- GitLab