已关闭
[Bug-Report|缺陷反馈]: Threshold算子需补充InferDataType #5550
renshuojian创建于  22 天前关闭于  22 天前
renshuojian
renshuojian
22 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

Threshold缺少 InferDataType 注册

Environment / 环境信息 (Mandatory / 必填)

950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

验证950的geir通路

Describe the expected behavior / 预期结果 (Mandatory / 必填)

补充输出 dtype 推导(输出 dtype = 输入 dtype)并挂接到IMPL_OP注册链。

static ge::graphStatus InferDataTypeThreshold(gert::InferDataTypeContext* context)
{
OP_LOGD(context->GetNodeName(), "Begin to do InferDataTypeThreshold");
context->SetOutputDataType(IDX_0, context->GetInputDataType(IDX_0));
OP_LOGD(context->GetNodeName(), "End to do InferDataTypeThreshold");
return ge::GRAPH_SUCCESS;
}

IMPL_OP(Threshold).InferDataType(InferDataTypeThreshold);

Special notes for this issue/备注 (Optional / 选填)

likedislike
yuning_chenyuning_chen成员
22 天前 将 rsj007 设为负责人
CANN-robotCANN-robot成员
22 天前 关闭了 issue
CANN-robotCANN-robot成员
22 天前 添加了label:resolved