已合并
fix: input_util.h 等添加头文件保护 #2722
zhanw_coding创建于 5月13日
fix: input_util.h 等添加头文件保护 #2722
已合并
zhanw_coding创建于 5月13日
2 个文件变更+10-0
@@ -8,6 +8,9 @@
8 * See LICENSE in the root of the software repository for the full text of the License.8 * See LICENSE in the root of the software repository for the full text of the License.
9 */9 */
10 10 
11+#ifndef MATH_COMMON_OP_GRAPH_GRAPH_INFER_COMM_FUNCS_H
12+#define MATH_COMMON_OP_GRAPH_GRAPH_INFER_COMM_FUNCS_H
13+ 
11#include "log/log.h"14#include "log/log.h"
12#include "graph/types.h"15#include "graph/types.h"
13#include "exe_graph/runtime/infer_datatype_context.h"16#include "exe_graph/runtime/infer_datatype_context.h"
@@ -27,3 +30,5 @@ ge::graphStatus InferDataTypeOutputSameAsInput(gert::InferDataTypeContext* conte
27 return context->SetOutputDataType(OUTPUT_IDX, context->GetInputDataType(INPUT_IDX));30 return context->SetOutputDataType(OUTPUT_IDX, context->GetInputDataType(INPUT_IDX));
28}31}
29} // namespace ops32} // namespace ops
33+ 
34+#endif
@@ -8,6 +8,9 @@
8 * See LICENSE in the root of the software repository for the full text of the License.8 * See LICENSE in the root of the software repository for the full text of the License.
9 */9 */
10 10 
11+#ifndef MATH_COMMON_OP_HOST_INPUT_UTIL_H
12+#define MATH_COMMON_OP_HOST_INPUT_UTIL_H
13+ 
11#include <tuple>14#include <tuple>
12#include <array>15#include <array>
13#include "log/log.h"16#include "log/log.h"
@@ -320,3 +323,5 @@ static inline ge::graphStatus GetImgDataDimsByNCHWOrder(
320 return ge::GRAPH_FAILED;323 return ge::GRAPH_FAILED;
321}324}
322} // namespace Ops::Math325} // namespace Ops::Math
326+ 
327+#endif