Skip to content

Commit 611c962

Browse files
committed
Format
1 parent 599c703 commit 611c962

File tree

4 files changed

+670
-522
lines changed

4 files changed

+670
-522
lines changed

lib/substitutions/src/substitutions/apply_substitution/perform_shape_inference.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#include "substitutions/apply_substitution/perform_shape_inference.h"
22
#include "op-attrs/get_incoming_tensor_roles.h"
33
#include "op-attrs/shape_inference.h"
4+
#include "utils/containers/binary_merge_disjoint_maps.h"
45
#include "utils/containers/filter_values.h"
56
#include "utils/containers/filtrans.h"
7+
#include "utils/containers/is_subseteq_of.h"
68
#include "utils/containers/map_keys.h"
79
#include "utils/containers/map_values.h"
810
#include "utils/containers/restrict_keys.h"
@@ -18,8 +20,6 @@
1820
#include "utils/graph/open_dataflow_graph/algorithms/get_inputs.h"
1921
#include "utils/graph/open_kwarg_dataflow_graph/algorithms/get_incoming_open_kwarg_dataflow_values_for_node.h"
2022
#include "utils/nonnegative_int/num_elements.h"
21-
#include "utils/containers/binary_merge_disjoint_maps.h"
22-
#include "utils/containers/is_subseteq_of.h"
2323

2424
namespace FlexFlow {
2525

@@ -72,7 +72,8 @@ LabelledOpenKwargDataflowGraphView<ParallelLayerAttrs,
7272
std::unordered_map<TensorSlotName, ParallelTensorShape> weight_shapes =
7373
incoming_shapes_with_role(IncomingTensorRole::WEIGHT);
7474

75-
ASSERT(binary_merge_disjoint_maps(input_shapes, weight_shapes) == incoming_shapes);
75+
ASSERT(binary_merge_disjoint_maps(input_shapes, weight_shapes) ==
76+
incoming_shapes);
7677

7778
std::unordered_map<TensorSlotName, ParallelTensorShape>
7879
inferred_weight_shapes =

0 commit comments

Comments
 (0)