Browse Source

!13544 add fp16 for const input -> valuenode

From: @simson_wu
Reviewed-by: 
Signed-off-by:
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
94841e4889
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/ccsrc/pipeline/pynative/pynative_execute.cc

+ 2
- 1
mindspore/ccsrc/pipeline/pynative/pynative_execute.cc View File

@@ -294,7 +294,8 @@ std::string GetSingleOpGraphInfo(const OpExecInfoPtr &op_exec_info,
if (input_tensors[index]->Dtype()->type_id() == kNumberTypeInt64) {
(void)graph_info.append(std::to_string(*reinterpret_cast<int *>(input_tensors[index]->data_c())));
graph_info += "_";
} else if (input_tensors[index]->Dtype()->type_id() == kNumberTypeFloat32) {
} else if (input_tensors[index]->Dtype()->type_id() == kNumberTypeFloat32 ||
input_tensors[index]->Dtype()->type_id() == kNumberTypeFloat16) {
(void)graph_info.append(std::to_string(*reinterpret_cast<float *>(input_tensors[index]->data_c())));
graph_info += "_";
} else {


Loading…
Cancel
Save