Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Oct 30, 2023
1 parent 26b47c5 commit 59e2007
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions onnxruntime/core/optimizer/conv_activation_action_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace onnxruntime {

class FusedConvActivationActionBase : public ReplaceWithNew {
private:
private:
std::string OpType(const RuntimeState& runtime_state) const override {
const auto& domain = runtime_state.selected_nodes.Target().Domain();
const auto& op_type = runtime_state.selected_nodes.Target().OpType();
Expand All @@ -31,6 +31,7 @@ class FusedConvActivationActionBase : public ReplaceWithNew {
std::string Domain(const RuntimeState& runtime_state) const override {

Check warning on line 31 in onnxruntime/core/optimizer/conv_activation_action_base.h

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/core/optimizer/conv_activation_action_base.h#L31

Add #include <string> for string [build/include_what_you_use] [4]
Raw output
onnxruntime/core/optimizer/conv_activation_action_base.h:31:  Add #include <string> for string  [build/include_what_you_use] [4]
auto domain = runtime_state.selected_nodes.Target().Domain();
return domain == kOnnxDomain ? kMSDomain : domain;
}};
}
};

} // namespace onnxruntime
4 changes: 2 additions & 2 deletions onnxruntime/core/optimizer/conv_activation_fusion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#include "core/common/inlined_containers.h"
#include "core/framework/tensorprotoutils.h"
#include "core/mlas/inc/mlas.h"
#include "core/graph/graph_utils.h"
#include "core/graph/node_attr_utils.h"
#include "core/optimizer/utils.h"
#include "core/mlas/inc/mlas.h"
#include "core/optimizer/conv_activation_action_base.h"
#include "core/optimizer/utils.h"

namespace onnxruntime {

Expand Down
4 changes: 1 addition & 3 deletions onnxruntime/core/optimizer/conv_add_act_fusion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Licensed under the MIT License.

#include "core/optimizer/conv_add_act_fusion.h"
#include "core/optimizer/conv_activation_action_base.h"

#include <deque>

#include "core/graph/graph_utils.h"
#include "core/graph/node_attr_utils.h"
#include "core/mlas/inc/mlas.h"
#include "core/optimizer/conv_activation_action_base.h"
#include "core/optimizer/initializer.h"
#include "core/optimizer/utils.h"

Expand Down Expand Up @@ -210,8 +210,6 @@ using NTO = NodesToOptimize;

class FuseConvAddActivationAction : public FusedConvActivationActionBase {
private:


NodeAttributes ExtraAttributes(const RuntimeState& state) const override {
NodeAttributes extra_fused_conv_attributes;

Expand Down

0 comments on commit 59e2007

Please sign in to comment.