forked from flexflow/FlexFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further code simplification and polishing
- Loading branch information
Showing
201 changed files
with
2,960 additions
and
2,988 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
bin/export-model-arch/include/export_model_arch/json_sp_model_export.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef _FLEXFLOW_BIN_EXPORT_MODEL_ARCH_INCLUDE_EXPORT_MODEL_ARCH_JSON_SP_MODEL_EXPORT_H | ||
#define _FLEXFLOW_BIN_EXPORT_MODEL_ARCH_INCLUDE_EXPORT_MODEL_ARCH_JSON_SP_MODEL_EXPORT_H | ||
|
||
#include <nlohmann/json.hpp> | ||
#include "export_model_arch/json_sp_model_export.dtg.h" | ||
|
||
namespace nlohmann { | ||
|
||
template <> | ||
struct adl_serializer<::FlexFlow::JsonSPModelExport> { | ||
static ::FlexFlow::JsonSPModelExport from_json(json const &); | ||
static void to_json(json &, ::FlexFlow::JsonSPModelExport const &); | ||
}; | ||
|
||
} // namespace nlohmann | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
bin/export-model-arch/src/export_model_arch/json_sp_model_export.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "export_model_arch/json_sp_model_export.h" | ||
|
||
using namespace ::FlexFlow; | ||
|
||
namespace nlohmann { | ||
|
||
JsonSPModelExport adl_serializer<JsonSPModelExport>::from_json(json const &j) { | ||
NOT_IMPLEMENTED(); | ||
} | ||
|
||
static void sp_decomposition_to_json(json &j, LeafOnlyBinarySPDecompositionTree<int> const &t) { | ||
} | ||
|
||
void adl_serializer<JsonSPModelExport>::to_json(json &j, JsonSPModelExport const &m) { | ||
j["computation_graph"] = m.computation_graph; | ||
sp_decomposition_to_json(j["sp_decomposition"], m.sp_decomposition); | ||
} | ||
|
||
|
||
} // namespace nlohmann |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...ler/machine_mapping/machine_mapping_problem_tree/machine_mapping_problem_tree.struct.toml
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...er/machine_mapping/machine_mapping_problem_tree/machine_mapping_problem_tree.variant.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace = "FlexFlow" | ||
name = "MachineMappingProblemTree" | ||
features = [ | ||
"eq", | ||
"hash", | ||
"fmt", | ||
] | ||
|
||
includes = [ | ||
"compiler/machine_mapping/machine_mapping_problem_tree/mm_problem_tree_series_split.dtg.h", | ||
"compiler/machine_mapping/machine_mapping_problem_tree/mm_problem_tree_parallel_split.dtg.h", | ||
"compiler/machine_mapping/machine_mapping_problem_tree/unmapped_op_cost_estimate_key.dtg.h", | ||
] | ||
|
||
[[values]] | ||
type = "::FlexFlow::MMProblemTreeSeriesSplit" | ||
key = "series" | ||
|
||
[[values]] | ||
type = "::FlexFlow::MMProblemTreeParallelSplit" | ||
key = "parallel" | ||
|
||
[[values]] | ||
type = "::FlexFlow::UnmappedOpCostEstimateKey" | ||
key = "leaf" |
14 changes: 0 additions & 14 deletions
14
...de/compiler/machine_mapping/machine_mapping_problem_tree/mm_problem_tree_parallel_split.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...ine_mapping/machine_mapping_problem_tree/mm_problem_tree_parallel_split_label.struct.toml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...lude/compiler/machine_mapping/machine_mapping_problem_tree/mm_problem_tree_series_split.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...chine_mapping/machine_mapping_problem_tree/mm_problem_tree_series_split_label.struct.toml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ler/series_parallel/computation_graph/computation_graph_binary_parallel_split.struct.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace = "FlexFlow" | ||
name = "ComputationGraphBinaryParallelSplit" | ||
features = [ | ||
"eq", | ||
"hash", | ||
"fmt", | ||
] | ||
|
||
fwd_decls = [ | ||
"struct ComputationGraphBinarySPDecomposition", | ||
] | ||
|
||
post_includes = [ | ||
"compiler/series_parallel/computation_graph/computation_graph_binary_sp_decomposition.dtg.h", | ||
] | ||
|
||
includes = [] | ||
|
||
[[fields]] | ||
name = "left_child" | ||
type = "::FlexFlow::ComputationGraphBinarySPDecomposition" | ||
indirect = true | ||
|
||
[[fields]] | ||
name = "right_child" | ||
type = "::FlexFlow::ComputationGraphBinarySPDecomposition" | ||
indirect = true |
Oops, something went wrong.