提交 82271e3e 编写于 作者: J jackzhang235

fix little error

上级 9c6b00a2
......@@ -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<void*>(static_cast<const void*>(data)),
CNRT_FLOAT32,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册