已合并
针对math仓部分算子错误日志进行统一整改 #5069
gaomingyuan创建于 13 天前
针对math仓部分算子错误日志进行统一整改 #5069
已合并
共 7 个文件变更+21-34
| @@ -47,7 +47,6 @@ ge::graphStatus SignTiling::CalcOutputDtype() | |||
| 47 | 47 | ||
| 48 | ge::graphStatus SignTiling::SetTilingData(const ElewiseBaseTiling& elewiseBaseTiling) | 48 | ge::graphStatus SignTiling::SetTilingData(const ElewiseBaseTiling& elewiseBaseTiling) |
| 49 | { | 49 | { |
| 50 | - OP_LOGD(tilingContext->GetNodeName(), "SignTiling SetTilingData enter."); | ||
| 51 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, tilingContext->GetRawTilingData()); | 50 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, tilingContext->GetRawTilingData()); |
| 52 | 51 | ||
| 53 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); | 52 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); |
| @@ -131,7 +130,6 @@ ge::graphStatus SignTiling::CheckOutputDtype() const | |||
| 131 | 130 | ||
| 132 | ge::graphStatus SignTiling::RunTiling() | 131 | ge::graphStatus SignTiling::RunTiling() |
| 133 | { | 132 | { |
| 134 | - OP_LOGD(tilingContext->GetNodeName(), "SignTiling RunTiling enter."); | ||
| 135 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 133 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 136 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); | 134 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); |
| 137 | // 获取tiling计算所需参数 | 135 | // 获取tiling计算所需参数 |
| @@ -170,7 +168,9 @@ ge::graphStatus SignTiling::RunTiling() | |||
| 170 | "FLOAT16, BF16, FLOAT, INT32, INT64, INT8, INT16, UINT8, UINT16, UINT32, UINT64"); | 168 | "FLOAT16, BF16, FLOAT, INT32, INT64, INT8, INT16, UINT8, UINT16, UINT32, UINT64"); |
| 171 | return ge::GRAPH_FAILED; | 169 | return ge::GRAPH_FAILED; |
| 172 | } | 170 | } |
| 173 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 171 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 172 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 173 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 174 | return ge::GRAPH_FAILED); | 174 | return ge::GRAPH_FAILED); |
| 175 | baseTilingResult = SetTilingData(elewiseBaseTiling); | 175 | baseTilingResult = SetTilingData(elewiseBaseTiling); |
| 176 | return baseTilingResult; | 176 | return baseTilingResult; |
| @@ -183,7 +183,6 @@ static ge::graphStatus TilingForSign(gert::TilingContext* tilingContextGen) | |||
| 183 | OP_LOGD(tilingContextGen->GetNodeName(), "TilingForSign is running."); | 183 | OP_LOGD(tilingContextGen->GetNodeName(), "TilingForSign is running."); |
| 184 | auto compileInfo = reinterpret_cast<const ElewiseCompileInfo*>(tilingContextGen->GetCompileInfo()); | 184 | auto compileInfo = reinterpret_cast<const ElewiseCompileInfo*>(tilingContextGen->GetCompileInfo()); |
| 185 | OP_CHECK_NULL_WITH_CONTEXT(tilingContextGen, compileInfo); | 185 | OP_CHECK_NULL_WITH_CONTEXT(tilingContextGen, compileInfo); |
| 186 | - OP_LOGD("SignTiling", "Enter new SignTiling"); | ||
| 187 | SignTiling baseOpTiling(tilingContextGen); | 186 | SignTiling baseOpTiling(tilingContextGen); |
| 188 | return baseOpTiling.RunTiling(); | 187 | return baseOpTiling.RunTiling(); |
| 189 | } | 188 | } |
| @@ -32,8 +32,6 @@ const int64_t DCACHE_SIZE = 32768; | |||
| 32 | 32 | ||
| 33 | ge::graphStatus SinTiling::SetTilingData(const ElewiseBaseTiling& elewiseBaseTiling) | 33 | ge::graphStatus SinTiling::SetTilingData(const ElewiseBaseTiling& elewiseBaseTiling) |
| 34 | { | 34 | { |
| 35 | - OP_LOGD(tilingContext->GetNodeName(), "SinTiling SetTilingData enter."); | ||
| 36 | - | ||
| 37 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); | 35 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); |
| 38 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, currentWorkspace); | 36 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, currentWorkspace); |
| 39 | currentWorkspace[0] = static_cast<size_t>(ASCEND_WORKSPACE); | 37 | currentWorkspace[0] = static_cast<size_t>(ASCEND_WORKSPACE); |
| @@ -63,7 +61,6 @@ ge::graphStatus SinTiling::SetTilingData(const ElewiseBaseTiling& elewiseBaseTil | |||
| 63 | 61 | ||
| 64 | ge::graphStatus SinTiling::CalcInputDtype() | 62 | ge::graphStatus SinTiling::CalcInputDtype() |
| 65 | { | 63 | { |
| 66 | - OP_LOGD(tilingContext->GetNodeName(), "SinTiling CalcInputDtype enter."); | ||
| 67 | auto inputDesc = tilingContext->GetInputDesc(0); | 64 | auto inputDesc = tilingContext->GetInputDesc(0); |
| 68 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); | 65 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); |
| 69 | this->inputDtype = inputDesc->GetDataType(); | 66 | this->inputDtype = inputDesc->GetDataType(); |
| @@ -77,7 +74,6 @@ ge::graphStatus SinTiling::CalcInputDtype() | |||
| 77 | 74 | ||
| 78 | ge::graphStatus SinTiling::CheckShape() const | 75 | ge::graphStatus SinTiling::CheckShape() const |
| 79 | { | 76 | { |
| 80 | - OP_LOGD(tilingContext->GetNodeName(), "SinTiling CheckShape enter."); | ||
| 81 | auto inputStorageShape = tilingContext->GetInputShape(0); | 77 | auto inputStorageShape = tilingContext->GetInputShape(0); |
| 82 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); | 78 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); |
| 83 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); | 79 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); |
| @@ -97,7 +93,6 @@ ge::graphStatus SinTiling::CheckShape() const | |||
| 97 | 93 | ||
| 98 | ge::graphStatus SinTiling::CalcOutputDtype() | 94 | ge::graphStatus SinTiling::CalcOutputDtype() |
| 99 | { | 95 | { |
| 100 | - OP_LOGD(tilingContext->GetNodeName(), "SinTiling CalcOutputDtype enter."); | ||
| 101 | auto outputDesc = tilingContext->GetOutputDesc(0); | 96 | auto outputDesc = tilingContext->GetOutputDesc(0); |
| 102 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); | 97 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); |
| 103 | this->outputDtype = outputDesc->GetDataType(); | 98 | this->outputDtype = outputDesc->GetDataType(); |
| @@ -113,7 +108,6 @@ ge::graphStatus SinTiling::CalcOutputDtype() | |||
| 113 | 108 | ||
| 114 | ge::graphStatus SinTiling::RunTiling() | 109 | ge::graphStatus SinTiling::RunTiling() |
| 115 | { | 110 | { |
| 116 | - OP_LOGD(tilingContext->GetNodeName(), "SinTiling RunTiling enter."); | ||
| 117 | Ops::Base::ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 111 | Ops::Base::ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 118 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); | 112 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); |
| 119 | 113 | ||
| @@ -142,7 +136,9 @@ ge::graphStatus SinTiling::RunTiling() | |||
| 142 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); | 136 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); |
| 143 | return ge::GRAPH_FAILED; | 137 | return ge::GRAPH_FAILED; |
| 144 | } | 138 | } |
| 145 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 139 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 140 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 141 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 146 | return ge::GRAPH_FAILED); | 142 | return ge::GRAPH_FAILED); |
| 147 | 143 | ||
| 148 | return SetTilingData(elewiseBaseTiling); | 144 | return SetTilingData(elewiseBaseTiling); |
| @@ -29,7 +29,6 @@ constexpr size_t SYS_WORKSPACE = 16777216; // 16M | |||
| 29 | 29 | ||
| 30 | ge::graphStatus SqrtTiling::CalcInputDtype() | 30 | ge::graphStatus SqrtTiling::CalcInputDtype() |
| 31 | { | 31 | { |
| 32 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtTiling CalcInputDtype enter."); | ||
| 33 | auto inputDesc = tilingContext->GetInputDesc(0); | 32 | auto inputDesc = tilingContext->GetInputDesc(0); |
| 34 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); | 33 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); |
| 35 | this->inputDtype = inputDesc->GetDataType(); | 34 | this->inputDtype = inputDesc->GetDataType(); |
| @@ -43,7 +42,6 @@ ge::graphStatus SqrtTiling::CalcInputDtype() | |||
| 43 | 42 | ||
| 44 | ge::graphStatus SqrtTiling::CheckShape() const | 43 | ge::graphStatus SqrtTiling::CheckShape() const |
| 45 | { | 44 | { |
| 46 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtTiling CheckShape enter."); | ||
| 47 | auto inputStorageShape = tilingContext->GetInputShape(0); | 45 | auto inputStorageShape = tilingContext->GetInputShape(0); |
| 48 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); | 46 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); |
| 49 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); | 47 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); |
| @@ -63,7 +61,6 @@ ge::graphStatus SqrtTiling::CheckShape() const | |||
| 63 | 61 | ||
| 64 | ge::graphStatus SqrtTiling::CalcOutputDtype() | 62 | ge::graphStatus SqrtTiling::CalcOutputDtype() |
| 65 | { | 63 | { |
| 66 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtTiling CalcOutputDtype enter."); | ||
| 67 | auto outputDesc = tilingContext->GetOutputDesc(0); | 64 | auto outputDesc = tilingContext->GetOutputDesc(0); |
| 68 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); | 65 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); |
| 69 | this->outputDtype = outputDesc->GetDataType(); | 66 | this->outputDtype = outputDesc->GetDataType(); |
| @@ -80,7 +77,6 @@ ge::graphStatus SqrtTiling::CalcOutputDtype() | |||
| 80 | ge::graphStatus SqrtTiling::RunTiling() | 77 | ge::graphStatus SqrtTiling::RunTiling() |
| 81 | { | 78 | { |
| 82 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); | 79 | auto tiling = tilingContext->GetTilingData<EleBaseTilingData16B>(); |
| 83 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtTiling RunTiling enter."); | ||
| 84 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 80 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 85 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), | 81 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), |
| 86 | return ge::GRAPH_FAILED); | 82 | return ge::GRAPH_FAILED); |
| @@ -104,7 +100,9 @@ ge::graphStatus SqrtTiling::RunTiling() | |||
| 104 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); | 100 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); |
| 105 | return ge::GRAPH_FAILED; | 101 | return ge::GRAPH_FAILED; |
| 106 | } | 102 | } |
| 107 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 103 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 104 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 105 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 108 | return ge::GRAPH_FAILED); | 106 | return ge::GRAPH_FAILED); |
| 109 | 107 | ||
| 110 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); | 108 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); |
| @@ -128,7 +126,6 @@ static ge::graphStatus Tiling4Sqrt(gert::TilingContext* context) | |||
| 128 | 126 | ||
| 129 | auto compileInfo = context->GetCompileInfo<SqrtCompileInfo>(); | 127 | auto compileInfo = context->GetCompileInfo<SqrtCompileInfo>(); |
| 130 | OP_CHECK_NULL_WITH_CONTEXT(context, compileInfo); | 128 | OP_CHECK_NULL_WITH_CONTEXT(context, compileInfo); |
| 131 | - OP_LOGD("SqrtTiling", "Enter new SqrtTiling"); | ||
| 132 | SqrtTiling tiling(context); | 129 | SqrtTiling tiling(context); |
| 133 | return tiling.RunTiling(); | 130 | return tiling.RunTiling(); |
| 134 | } | 131 | } |
| @@ -53,8 +53,6 @@ private: | |||
| 53 | 53 | ||
| 54 | void SqrtGradTiling::SetTilingData() | 54 | void SqrtGradTiling::SetTilingData() |
| 55 | { | 55 | { |
| 56 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtGradTiling SetTilingData enter."); | ||
| 57 | - | ||
| 58 | const uint64_t tilingKey = GET_TPL_TILING_KEY(static_cast<uint64_t>(tiling->basetiling.scheMode), dType); | 56 | const uint64_t tilingKey = GET_TPL_TILING_KEY(static_cast<uint64_t>(tiling->basetiling.scheMode), dType); |
| 59 | OP_LOGD(tilingContext->GetNodeName(), "[TilingData] : tilingKey=%lu", tilingKey); | 57 | OP_LOGD(tilingContext->GetNodeName(), "[TilingData] : tilingKey=%lu", tilingKey); |
| 60 | tilingContext->SetTilingKey(tilingKey); | 58 | tilingContext->SetTilingKey(tilingKey); |
| @@ -139,7 +137,6 @@ ge::graphStatus SqrtGradTiling::CalcOutputDtype() | |||
| 139 | 137 | ||
| 140 | ge::graphStatus SqrtGradTiling::RunTiling() | 138 | ge::graphStatus SqrtGradTiling::RunTiling() |
| 141 | { | 139 | { |
| 142 | - OP_LOGD(tilingContext->GetNodeName(), "SqrtGradTiling RunTiling enter."); | ||
| 143 | Ops::Base::ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 140 | Ops::Base::ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 144 | tiling = tilingContext->GetTilingData<SqrtGradTilingData>(); | 141 | tiling = tilingContext->GetTilingData<SqrtGradTilingData>(); |
| 145 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), | 142 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), |
| @@ -165,7 +162,9 @@ ge::graphStatus SqrtGradTiling::RunTiling() | |||
| 165 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); | 162 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); |
| 166 | return ge::GRAPH_FAILED; | 163 | return ge::GRAPH_FAILED; |
| 167 | } | 164 | } |
| 168 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 165 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 166 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 167 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 169 | return ge::GRAPH_FAILED); | 168 | return ge::GRAPH_FAILED); |
| 170 | SetTilingData(); | 169 | SetTilingData(); |
| 171 | 170 | ||
| @@ -152,7 +152,9 @@ ge::graphStatus SquareTiling::RunTiling() | |||
| 152 | "FLOAT16, BF16, FLOAT, INT32, INT64"); | 152 | "FLOAT16, BF16, FLOAT, INT32, INT64"); |
| 153 | return ge::GRAPH_FAILED; | 153 | return ge::GRAPH_FAILED; |
| 154 | } | 154 | } |
| 155 | - OP_CHECK_IF(status == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 155 | + OP_CHECK_IF(status == ge::GRAPH_FAILED, |
| 156 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 157 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 156 | return ge::GRAPH_FAILED); | 158 | return ge::GRAPH_FAILED); |
| 157 | 159 | ||
| 158 | return SetTilingData(elewiseBaseTiling); | 160 | return SetTilingData(elewiseBaseTiling); |
| @@ -39,7 +39,6 @@ ge::graphStatus TanhTiling::SetTilingData() | |||
| 39 | 39 | ||
| 40 | ge::graphStatus TanhTiling::CalcInputDtype() | 40 | ge::graphStatus TanhTiling::CalcInputDtype() |
| 41 | { | 41 | { |
| 42 | - OP_LOGD(tilingContext->GetNodeName(), "TanhTiling CalcInputDtype enter."); | ||
| 43 | auto inputDesc = tilingContext->GetInputDesc(0); | 42 | auto inputDesc = tilingContext->GetInputDesc(0); |
| 44 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); | 43 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); |
| 45 | this->inputDtype = inputDesc->GetDataType(); | 44 | this->inputDtype = inputDesc->GetDataType(); |
| @@ -53,7 +52,6 @@ ge::graphStatus TanhTiling::CalcInputDtype() | |||
| 53 | 52 | ||
| 54 | ge::graphStatus TanhTiling::CheckShape() const | 53 | ge::graphStatus TanhTiling::CheckShape() const |
| 55 | { | 54 | { |
| 56 | - OP_LOGD(tilingContext->GetNodeName(), "TanhTiling CheckShape enter."); | ||
| 57 | auto inputStorageShape = tilingContext->GetInputShape(0); | 55 | auto inputStorageShape = tilingContext->GetInputShape(0); |
| 58 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); | 56 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); |
| 59 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); | 57 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); |
| @@ -73,7 +71,6 @@ ge::graphStatus TanhTiling::CheckShape() const | |||
| 73 | 71 | ||
| 74 | ge::graphStatus TanhTiling::CalcOutputDtype() | 72 | ge::graphStatus TanhTiling::CalcOutputDtype() |
| 75 | { | 73 | { |
| 76 | - OP_LOGD(tilingContext->GetNodeName(), "TanhTiling CalcOutputDtype enter."); | ||
| 77 | auto outputDesc = tilingContext->GetOutputDesc(0); | 74 | auto outputDesc = tilingContext->GetOutputDesc(0); |
| 78 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); | 75 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); |
| 79 | this->outputDtype = outputDesc->GetDataType(); | 76 | this->outputDtype = outputDesc->GetDataType(); |
| @@ -89,7 +86,6 @@ ge::graphStatus TanhTiling::CalcOutputDtype() | |||
| 89 | 86 | ||
| 90 | ge::graphStatus TanhTiling::RunTiling() | 87 | ge::graphStatus TanhTiling::RunTiling() |
| 91 | { | 88 | { |
| 92 | - OP_LOGD(tilingContext->GetNodeName(), "TanhTiling RunTiling enter."); | ||
| 93 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 89 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 94 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), | 90 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), |
| 95 | return ge::GRAPH_FAILED); | 91 | return ge::GRAPH_FAILED); |
| @@ -114,7 +110,9 @@ ge::graphStatus TanhTiling::RunTiling() | |||
| 114 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); | 110 | ge::TypeUtils::DataTypeToSerialString(this->outputDtype), "FLOAT16, BF16, FLOAT"); |
| 115 | return ge::GRAPH_FAILED; | 111 | return ge::GRAPH_FAILED; |
| 116 | } | 112 | } |
| 117 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 113 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 114 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 115 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 118 | return ge::GRAPH_FAILED); | 116 | return ge::GRAPH_FAILED); |
| 119 | 117 | ||
| 120 | return SetTilingData(); | 118 | return SetTilingData(); |
| @@ -27,8 +27,6 @@ const int64_t ASCEND_WORKSPACE = 16 * 1024 * 1024; | |||
| 27 | 27 | ||
| 28 | ge::graphStatus TruncTiling::SetTilingData() | 28 | ge::graphStatus TruncTiling::SetTilingData() |
| 29 | { | 29 | { |
| 30 | - OP_LOGD(tilingContext->GetNodeName(), "TruncTiling SetTilingData enter."); | ||
| 31 | - | ||
| 32 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); | 30 | size_t* currentWorkspace = tilingContext->GetWorkspaceSizes(1); |
| 33 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, currentWorkspace); | 31 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, currentWorkspace); |
| 34 | currentWorkspace[0] = ASCEND_WORKSPACE; | 32 | currentWorkspace[0] = ASCEND_WORKSPACE; |
| @@ -41,7 +39,6 @@ ge::graphStatus TruncTiling::SetTilingData() | |||
| 41 | 39 | ||
| 42 | ge::graphStatus TruncTiling::CalcInputDtype() | 40 | ge::graphStatus TruncTiling::CalcInputDtype() |
| 43 | { | 41 | { |
| 44 | - OP_LOGD(tilingContext->GetNodeName(), "TruncTiling CalcInputDtype enter."); | ||
| 45 | auto inputDesc = tilingContext->GetInputDesc(0); | 42 | auto inputDesc = tilingContext->GetInputDesc(0); |
| 46 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); | 43 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputDesc); |
| 47 | this->inputDtype = inputDesc->GetDataType(); | 44 | this->inputDtype = inputDesc->GetDataType(); |
| @@ -57,7 +54,6 @@ ge::graphStatus TruncTiling::CalcInputDtype() | |||
| 57 | 54 | ||
| 58 | ge::graphStatus TruncTiling::CheckShape() const | 55 | ge::graphStatus TruncTiling::CheckShape() const |
| 59 | { | 56 | { |
| 60 | - OP_LOGD(tilingContext->GetNodeName(), "TruncTiling CheckShape enter."); | ||
| 61 | auto inputStorageShape = tilingContext->GetInputShape(0); | 57 | auto inputStorageShape = tilingContext->GetInputShape(0); |
| 62 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); | 58 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, inputStorageShape); |
| 63 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); | 59 | const gert::Shape& inputYShape = Ops::Base::EnsureNotScalar(inputStorageShape->GetStorageShape()); |
| @@ -77,7 +73,6 @@ ge::graphStatus TruncTiling::CheckShape() const | |||
| 77 | 73 | ||
| 78 | ge::graphStatus TruncTiling::CalcOutputDtype() | 74 | ge::graphStatus TruncTiling::CalcOutputDtype() |
| 79 | { | 75 | { |
| 80 | - OP_LOGD(tilingContext->GetNodeName(), "TruncTiling CalcOutputDtype enter."); | ||
| 81 | auto outputDesc = tilingContext->GetOutputDesc(0); | 76 | auto outputDesc = tilingContext->GetOutputDesc(0); |
| 82 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); | 77 | OP_CHECK_NULL_WITH_CONTEXT(tilingContext, outputDesc); |
| 83 | this->outputDtype = outputDesc->GetDataType(); | 78 | this->outputDtype = outputDesc->GetDataType(); |
| @@ -93,7 +88,6 @@ ge::graphStatus TruncTiling::CalcOutputDtype() | |||
| 93 | 88 | ||
| 94 | ge::graphStatus TruncTiling::RunTiling() | 89 | ge::graphStatus TruncTiling::RunTiling() |
| 95 | { | 90 | { |
| 96 | - OP_LOGD(tilingContext->GetNodeName(), "TruncTiling RunTiling enter."); | ||
| 97 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); | 91 | ElewiseBaseTiling elewiseBaseTiling(tilingContext); |
| 98 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), | 92 | OP_CHECK_IF(CalcInputDtype() == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "get input dtype failed"), |
| 99 | return ge::GRAPH_FAILED); | 93 | return ge::GRAPH_FAILED); |
| @@ -128,7 +122,9 @@ ge::graphStatus TruncTiling::RunTiling() | |||
| 128 | "FLOAT16, BF16, FLOAT, INT8, UINT8, INT32"); | 122 | "FLOAT16, BF16, FLOAT, INT8, UINT8, INT32"); |
| 129 | return ge::GRAPH_FAILED; | 123 | return ge::GRAPH_FAILED; |
| 130 | } | 124 | } |
| 131 | - OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed"), | 125 | + OP_CHECK_IF(baseTilingResult == ge::GRAPH_FAILED, |
| 126 | + OP_LOGE(tilingContext->GetNodeName(), "elewiseBaseTiling failed, output dtype: %s.", | ||
| 127 | + ge::TypeUtils::DataTypeToSerialString(this->outputDtype).c_str()), | ||
| 132 | return ge::GRAPH_FAILED); | 128 | return ge::GRAPH_FAILED); |
| 133 | 129 | ||
| 134 | return SetTilingData(); | 130 | return SetTilingData(); |