Merged
docs: 修复注释与代码不一致(失效 TODO 与头文件保护注释) #6497
docs: 修复注释与代码不一致(失效 TODO 与头文件保护注释) #6497
Merged
TangPCAdd on 25 days ago
Total: 2 files changed+5-5
@@ -11,19 +11,19 @@
11 * \file confusion_transpose_d_graph_infer.cpp11 * \file confusion_transpose_d_graph_infer.cpp
12 * \brief confusion_transpose_d operater graph infer resource12 * \brief confusion_transpose_d operater graph infer resource
13 */13 */
14-//todo:这些头文件都没有啊
15#include "log/log.h"14#include "log/log.h"
16#include "op_common/op_host/util/shape_util.h"15#include "op_common/op_host/util/shape_util.h"
17#include "register/op_impl_registry.h"16#include "register/op_impl_registry.h"
18#include "op_common/op_host/infershape_broadcast_util.h"17#include "op_common/op_host/infershape_broadcast_util.h"
19 18 
20using namespace ge;19using namespace ge;
21-namespace ops{20+namespace ops {
22-static ge::graphStatus InferDataType4ConfusionTransposeD(gert::InferDataTypeContext* context){21+static ge::graphStatus InferDataType4ConfusionTransposeD(gert::InferDataTypeContext* context)
22+{
23 OP_LOGI("Begin to do infer dataType for ConfusionTransposeD.");23 OP_LOGI("Begin to do infer dataType for ConfusionTransposeD.");
24 const ge::DataType xDataType = context->GetInputDataType(0);24 const ge::DataType xDataType = context->GetInputDataType(0);
25 context->SetOutputDataType(0, xDataType);25 context->SetOutputDataType(0, xDataType);
26 return ge::GRAPH_SUCCESS;26 return ge::GRAPH_SUCCESS;
27}27}
28IMPL_OP(ConfusionTransposeD).InferDataType(InferDataType4ConfusionTransposeD);28IMPL_OP(ConfusionTransposeD).InferDataType(InferDataType4ConfusionTransposeD);
29-}; // namespace ops29+}; // namespace ops
@@ -80,4 +80,4 @@ private:
80 80 
81} // namespace optiling81} // namespace optiling
82 82 
83-#endif // CONFUSION_TRANSPOSE_D_TILING_H_83+#endif // CONFUSION_TRANSPOSE_D_TILING_ARCH35_H_