Browse Source

update mindspore/ccsrc/runtime/device/ascend/kernel_select_ascend.cc.

tags/v0.7.0-beta
lianliguang Gitee 5 years ago
parent
commit
57fe409c7c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/runtime/device/ascend/kernel_select_ascend.cc

+ 1
- 1
mindspore/ccsrc/runtime/device/ascend/kernel_select_ascend.cc View File

@@ -499,7 +499,7 @@ void SetTensorDeviceInfo(const kernel::KernelBuildInfo &selected_kernel_info, co
if (AnfAlgo::GetOutputDeviceDataType(real_input_node, 0) == kTypeUnknown || is_ref) {
std::vector<std::string> output_format = {selected_kernel_info.GetInputFormat(input_index)};
builder->SetOutputsFormat(output_format);
std::vector<TypeId> output_type = {selected_kernel_info.GetInputDeviceType(input_index)};
std::vector<TypeId> output_type = {AnfAlgo::GetOutputInferDataType(real_input_node, 0)};
builder->SetOutputsDeviceType(output_type);
AnfAlgo::SetSelectKernelBuildInfo(builder->Build(), real_input_node.get());
}


Loading…
Cancel
Save