File tree Expand file tree Collapse file tree
lib/pcg/src/pcg/file_format/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
67namespace FlexFlow {
@@ -12,14 +13,14 @@ V1ComputationGraph to_v1(ComputationGraph const &g) {
1213}
1314
1415ComputationGraph 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
2526std::pair<V1ComputationGraph, bidict<nonnegative_int, layer_guid_t >>
Original file line number Diff line number Diff line change 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
56namespace FlexFlow {
@@ -12,17 +13,16 @@ V1ParallelComputationGraph to_v1(ParallelComputationGraph const &g) {
1213}
1314
1415ParallelComputationGraph 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
You can’t perform that action at this time.
0 commit comments