已合并
修改maxPool3DWithArgmaxV2、maxPoolV2、maxPool3DGradWithArgmax、avgPool3DGrad、embeddingBag、embeddingDenseGradV2编译告警 #2013
SimonZzz创建于 2月24日
修改maxPool3DWithArgmaxV2、maxPoolV2、maxPool3DGradWithArgmax、avgPool3DGrad、embeddingBag、embeddingDenseGradV2编译告警 #2013
已合并
SimonZzz创建于 2月24日
9 个文件变更+42-36
@@ -47,7 +47,6 @@ public:
47 this->offset2bagGm_.SetGlobalBuffer((__gm__ I*)(gmParam[OFFSET2BAG_OUTPUT_IDX]));47 this->offset2bagGm_.SetGlobalBuffer((__gm__ I*)(gmParam[OFFSET2BAG_OUTPUT_IDX]));
48 this->maxIndicesGm_.SetGlobalBuffer((__gm__ I*)(gmParam[MAXINDICES_OUTPUT_IDX]));48 this->maxIndicesGm_.SetGlobalBuffer((__gm__ I*)(gmParam[MAXINDICES_OUTPUT_IDX]));
49 49
50- 
51 if (GetBlockIdx() == 0){50 if (GetBlockIdx() == 0){
52 InitGlobalMemory(this->yGm_, tiling_.embeddingDim * tiling_.nBags, (T)(0));51 InitGlobalMemory(this->yGm_, tiling_.embeddingDim * tiling_.nBags, (T)(0));
53 int32_t eventIDMTE3ToV = static_cast<int32_t>(GetTPipePtr()->FetchEventID(HardEvent::MTE3_V));52 int32_t eventIDMTE3ToV = static_cast<int32_t>(GetTPipePtr()->FetchEventID(HardEvent::MTE3_V));
Mindex/embedding_dense_grad_v2/op_host/embedding_dense_grad_v2_tiling.cpp+2-1文件内容审核中,请稍后刷新重试
Mpooling/avg_pool3_d_grad/op_host/avg_pool_3d_grad_tiling.cpp+0-1文件内容审核中,请稍后刷新重试
@@ -106,28 +106,28 @@ ge::graphStatus InferShape4MaxPool3DWithArgmaxV2(gert::InferShapeContext* contex
106 std::string errMsg4Ksize = optiling::ConcatString("Length of ksize ", ksize->GetSize(), " must be 3!");106 std::string errMsg4Ksize = optiling::ConcatString("Length of ksize ", ksize->GetSize(), " must be 3!");
107 OP_CHECK_IF(ksize->GetSize() != ATTR_LIST_SHAPE_SIZE,107 OP_CHECK_IF(ksize->GetSize() != ATTR_LIST_SHAPE_SIZE,
108 OP_LOGE(context->GetNodeName(), "%s", errMsg4Ksize.c_str()), return GRAPH_FAILED);108 OP_LOGE(context->GetNodeName(), "%s", errMsg4Ksize.c_str()), return GRAPH_FAILED);
109- auto ksize_data = reinterpret_cast<const int64_t*>(ksize->GetData());109+ auto ksize_data = static_cast<const int64_t*>(ksize->GetData());
110 110 
111 auto strides = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_STRIDES);111 auto strides = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_STRIDES);
112 OPS_CHECK_NULL_WITH_CONTEXT(context, strides);112 OPS_CHECK_NULL_WITH_CONTEXT(context, strides);
113 std::string errMsg4Strides = optiling::ConcatString("Length of strides ", strides->GetSize(), " must be 3!");113 std::string errMsg4Strides = optiling::ConcatString("Length of strides ", strides->GetSize(), " must be 3!");
114 OP_CHECK_IF(strides->GetSize() != ATTR_LIST_SHAPE_SIZE,114 OP_CHECK_IF(strides->GetSize() != ATTR_LIST_SHAPE_SIZE,
115 OP_LOGE(context->GetNodeName(), "%s", errMsg4Strides.c_str()), return GRAPH_FAILED);115 OP_LOGE(context->GetNodeName(), "%s", errMsg4Strides.c_str()), return GRAPH_FAILED);
116- auto strides_data = reinterpret_cast<const int64_t*>(strides->GetData());116+ auto strides_data = static_cast<const int64_t*>(strides->GetData());
117 117 
118 auto pads = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_PADS);118 auto pads = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_PADS);
119 OPS_CHECK_NULL_WITH_CONTEXT(context, pads);119 OPS_CHECK_NULL_WITH_CONTEXT(context, pads);
120 std::string errMsg4Pads = optiling::ConcatString("Length of pads ", pads->GetSize(), " must be 3!");120 std::string errMsg4Pads = optiling::ConcatString("Length of pads ", pads->GetSize(), " must be 3!");
121 OP_CHECK_IF(pads->GetSize() != ATTR_LIST_SHAPE_SIZE,121 OP_CHECK_IF(pads->GetSize() != ATTR_LIST_SHAPE_SIZE,
122 OP_LOGE(context->GetNodeName(), "%s", errMsg4Pads.c_str()), return GRAPH_FAILED);122 OP_LOGE(context->GetNodeName(), "%s", errMsg4Pads.c_str()), return GRAPH_FAILED);
123- auto pads_data = reinterpret_cast<const int64_t*>(pads->GetData());123+ auto pads_data = static_cast<const int64_t*>(pads->GetData());
124 124 
125 auto dilation = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_DILATION);125 auto dilation = attrs->GetAttrPointer<gert::ContinuousVector>(INDEX_DILATION);
126 OPS_CHECK_NULL_WITH_CONTEXT(context, dilation);126 OPS_CHECK_NULL_WITH_CONTEXT(context, dilation);
127 std::string errMsg4Dilation = optiling::ConcatString("Length of dilation ", dilation->GetSize(), " must be 3!");127 std::string errMsg4Dilation = optiling::ConcatString("Length of dilation ", dilation->GetSize(), " must be 3!");
128 OP_CHECK_IF(dilation->GetSize() != ATTR_LIST_SHAPE_SIZE,128 OP_CHECK_IF(dilation->GetSize() != ATTR_LIST_SHAPE_SIZE,
129 OP_LOGE(context->GetNodeName(), "%s", errMsg4Dilation.c_str()), return GRAPH_FAILED);129 OP_LOGE(context->GetNodeName(), "%s", errMsg4Dilation.c_str()), return GRAPH_FAILED);
130- auto dilation_data = reinterpret_cast<const int64_t*>(dilation->GetData());130+ auto dilation_data = static_cast<const int64_t*>(dilation->GetData());
131 131 
132 auto ceil_mode = attrs->GetAttrPointer<bool>(INDEX_CEIL_MODE);132 auto ceil_mode = attrs->GetAttrPointer<bool>(INDEX_CEIL_MODE);
133 OPS_CHECK_NULL_WITH_CONTEXT(context, ceil_mode);133 OPS_CHECK_NULL_WITH_CONTEXT(context, ceil_mode);
Mpooling/max_pool_v2/op_host/max_pool_v2_infershape.cpp+2-2文件内容审核中,请稍后刷新重试