From 118f33ff525e4ab3a4470b1696770137194b4d02 Mon Sep 17 00:00:00 2001 From: siahuat0727 Date: Tue, 8 Mar 2022 19:35:19 +0800 Subject: [PATCH] Fix variable name typo (#334) Co-authored-by: Wenxiang Hu <8460860+wenxcs@users.noreply.github.com> --- .../operators/generic_op/generic_op_define/Elementwise.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnfusion/core/operators/generic_op/generic_op_define/Elementwise.cpp b/src/nnfusion/core/operators/generic_op/generic_op_define/Elementwise.cpp index bc53d9e27..d495d7331 100644 --- a/src/nnfusion/core/operators/generic_op/generic_op_define/Elementwise.cpp +++ b/src/nnfusion/core/operators/generic_op/generic_op_define/Elementwise.cpp @@ -120,9 +120,9 @@ auto trans_elementwise = [](std::shared_ptr& node) { expr += replace_input_str(iter->second.expr) + ";"; } - auto data_layput = op::create_layout_from_dims(node->get_output_shape(0)); + auto data_layout = op::create_layout_from_dims(node->get_output_shape(0)); return op::create_code_from_template( - expr, {{"data_layout", vector_to_string>(data_layput)}}); + expr, {{"data_layout", vector_to_string>(data_layout)}}); }; #define REGISTER_ELEM_OP(op_name) \