Skip to content

Commit 8628fd3

Browse files
Fix build.
1 parent c277800 commit 8628fd3

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

lib/pcg/src/pcg/file_format/v1/v1_computation_graph.cc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "pcg/file_format/v1/v1_computation_graph.h"
22
#include "pcg/file_format/v1/graphs/v1_labelled_kwarg_dataflow_graph.h"
33
#include "utils/bidict/algorithms/transform_values.h"
4+
#include "utils/graph/instances/unordered_set_labelled_open_kwarg_dataflow_graph.h"
45
#include "utils/graph/labelled_kwarg_dataflow_graph/labelled_kwarg_dataflow_graph.h"
56

67
namespace FlexFlow {
@@ -12,14 +13,14 @@ V1ComputationGraph to_v1(ComputationGraph const &g) {
1213
}
1314

1415
ComputationGraph from_v1(V1ComputationGraph const &v1) {
15-
LabelledKwargDataflowGraph<LayerAttrs, TensorAttrs, TensorSlotName>
16-
raw_graph =
17-
LabelledKwargDataflowGraph<LayerAttrs, TensorAttrs, TensorSlotName>::
18-
create_copy_of<LabelledKwargDataflowGraph<LayerAttrs,
19-
TensorAttrs,
20-
TensorSlotName>>(
21-
from_v1(v1.raw_graph).first);
22-
return ComputationGraph{raw_graph};
16+
return ComputationGraph{
17+
LabelledKwargDataflowGraph<LayerAttrs, TensorAttrs, TensorSlotName>::
18+
create_copy_of<
19+
UnorderedSetLabelledOpenKwargDataflowGraph<LayerAttrs,
20+
TensorAttrs,
21+
int,
22+
TensorSlotName>>(
23+
from_v1(v1.raw_graph).first)};
2324
}
2425

2526
std::pair<V1ComputationGraph, bidict<nonnegative_int, layer_guid_t>>
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "pcg/file_format/v1/v1_parallel_computation_graph.h"
22
#include "pcg/file_format/v1/graphs/v1_labelled_kwarg_dataflow_graph.h"
3+
#include "utils/graph/instances/unordered_set_labelled_open_kwarg_dataflow_graph.h"
34
#include "utils/graph/labelled_kwarg_dataflow_graph/labelled_kwarg_dataflow_graph.h"
45

56
namespace FlexFlow {
@@ -12,17 +13,16 @@ V1ParallelComputationGraph to_v1(ParallelComputationGraph const &g) {
1213
}
1314

1415
ParallelComputationGraph from_v1(V1ParallelComputationGraph const &v1) {
15-
LabelledKwargDataflowGraph<ParallelLayerAttrs,
16-
ParallelTensorAttrs,
17-
TensorSlotName>
18-
raw_graph = LabelledKwargDataflowGraph<ParallelLayerAttrs,
19-
ParallelTensorAttrs,
20-
TensorSlotName>::
21-
create_copy_of<LabelledKwargDataflowGraph<ParallelLayerAttrs,
22-
ParallelTensorAttrs,
23-
TensorSlotName>>(
24-
from_v1(v1.raw_graph).first);
25-
return ParallelComputationGraph{raw_graph};
16+
return ParallelComputationGraph{
17+
LabelledKwargDataflowGraph<ParallelLayerAttrs,
18+
ParallelTensorAttrs,
19+
TensorSlotName>::
20+
create_copy_of<
21+
UnorderedSetLabelledOpenKwargDataflowGraph<ParallelLayerAttrs,
22+
ParallelTensorAttrs,
23+
int,
24+
TensorSlotName>>(
25+
from_v1(v1.raw_graph).first)};
2626
}
2727

2828
} // namespace FlexFlow

0 commit comments

Comments
 (0)