diff --git a/lib/substitutions/include/substitutions/sub_parallel_computation_graph.h b/lib/substitutions/include/substitutions/sub_parallel_computation_graph.h index 96a3b41dfc..352ffc1dec 100644 --- a/lib/substitutions/include/substitutions/sub_parallel_computation_graph.h +++ b/lib/substitutions/include/substitutions/sub_parallel_computation_graph.h @@ -14,7 +14,8 @@ using SubParallelComputationGraph = CHECK_WELL_BEHAVED_VALUE_TYPE_NO_EQ(SubParallelComputationGraph); -ParallelTensor at(SubParallelComputationGraph const &g, OpenMultiDiEdge const &e); +ParallelTensor at(SubParallelComputationGraph const &g, + OpenMultiDiEdge const &e); } // namespace FlexFlow diff --git a/lib/substitutions/src/sub_parallel_computation_graph.cc b/lib/substitutions/src/sub_parallel_computation_graph.cc index ac67451c78..e8ab70648f 100644 --- a/lib/substitutions/src/sub_parallel_computation_graph.cc +++ b/lib/substitutions/src/sub_parallel_computation_graph.cc @@ -2,8 +2,9 @@ namespace FlexFlow { -ParallelTensor at(SubParallelComputationGraph const &g, OpenMultiDiEdge const &e) { - return visit([&](const auto &e) { return g.at(e); }, e); +ParallelTensor at(SubParallelComputationGraph const &g, + OpenMultiDiEdge const &e) { + return visit([&](auto const &e) { return g.at(e); }, e); } -} +} // namespace FlexFlow diff --git a/lib/utils/include/utils/graph/labelled/labelled_open_interfaces.h b/lib/utils/include/utils/graph/labelled/labelled_open_interfaces.h index 20138c4212..2db654c615 100644 --- a/lib/utils/include/utils/graph/labelled/labelled_open_interfaces.h +++ b/lib/utils/include/utils/graph/labelled/labelled_open_interfaces.h @@ -2,8 +2,8 @@ #define _FLEXFLOW_UTILS_INCLUDE_UTILS_GRAPH_LABELLED_LABELLED_OPEN_INTERFACES_H #include "standard_labelled_interfaces.h" -#include "utils/graph/open_graph_interfaces.h" #include "utils/containers.h" +#include "utils/graph/open_graph_interfaces.h" namespace FlexFlow { @@ -15,11 +15,12 @@ struct ILabelledOpenMultiDiGraphView : public IOpenMultiDiGraphView, public ILabelledMultiDiGraphView { public: - std::unordered_set query_edges(MultiDiEdgeQuery const &q) const final { - return map_over_unordered_set([](OpenMultiDiEdge const &e) { return get(e); }, - IOpenMultiDiGraphView::query_edges(static_cast(q))); + return map_over_unordered_set( + [](OpenMultiDiEdge const &e) { return get(e); }, + IOpenMultiDiGraphView::query_edges( + static_cast(q))); } using ILabelledMultiDiGraphView::at;