Skip to content

Commit c5a9a1f

Browse files
committed
Remove symbolic in task-spec
1 parent c92cbe2 commit c5a9a1f

File tree

62 files changed

+272
-1689
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+272
-1689
lines changed

lib/local-pcg-execution/src/local-pcg-execution/execute_tasks_for_parallel_layer.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "local-pcg-execution/local_parallel_tensor_backing.h"
55
#include "local-pcg-execution/task_group_execution_times.dtg.h"
66
#include "task-spec/fwb_op_task_type.h"
7-
#include "task-spec/symbolic/training_symbolic_computation_graph.h"
87
#include "utils/containers/flatmap.h"
98
#include "utils/containers/lift_optional_through_map.h"
109
#include "utils/containers/map_values.h"

lib/task-spec/include/task-spec/dynamic_graph/dynamic_open_dataflow_graph.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace FlexFlow {
88

99
DynamicOpenDataflowGraph make_empty_dynamic_open_dataflow_graph();
1010

11+
nonnegative_int dynamic_graph_num_nodes(DynamicOpenDataflowGraph const &);
12+
1113
bool full_dynamic_graph_satisfies(
1214
DynamicOpenDataflowGraph const &,
1315
std::function<bool(DynamicNodeAttrs const &)> const &,

lib/task-spec/include/task-spec/loss_functions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#define _FLEXFLOW_LIB_TASK_SPEC_INCLUDE_TASK_SPEC_LOSS_FUNCTIONS_H
1818

1919
#include "op-attrs/ops/loss_functions.h"
20-
#include "task-spec/symbolic/symbolic_forward_tensor_guid_t.dtg.h"
21-
#include "task-spec/symbolic/symbolic_gradient_tensor_guid_t.dtg.h"
22-
#include "task-spec/symbolic/symbolic_loss_tensor_guid_t.dtg.h"
2320
#include "task-spec/task_impl_function.dtg.h"
2421

2522
namespace FlexFlow {

lib/task-spec/include/task-spec/lower_op_task_invocation_to_runtime_task_invocation.h

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,16 @@
77
#include "task-spec/ops/op_arg_ref_spec.h"
88
#include "task-spec/runtime_task_invocation/runtime_arg_ref_spec.h"
99
#include "task-spec/runtime_task_invocation/runtime_arg_config.dtg.h"
10-
#include "task-spec/symbolic/symbolic_layer_training_tensor_group_signature.dtg.h"
11-
#include "task-spec/symbolic/symbolic_layer_training_tensor_group_signature_with_shapes.dtg.h"
12-
#include "task-spec/symbolic/symbolic_training_tensor_guid_t.dtg.h"
13-
#include "task-spec/symbolic/symbolic_layer_training_tensor_group_signature_with_shapes.dtg.h"
14-
#include "task-spec/symbolic/symbolic_layer_tensor_shape_signature.dtg.h"
1510

1611
namespace FlexFlow {
1712

18-
// TODO(@lockshaw)(#pr): this really shouldn't be here
19-
ConcreteArgSpec
20-
lower_runtime_arg_ref_spec_to_concrete_arg_spec(
21-
RuntimeArgRefSpec const &,
22-
RuntimeArgConfig const &r,
23-
DeviceSpecific<device_handle_t> const &,
24-
std::function<std::optional<DeviceSpecificPerDeviceOpState>(symbolic_layer_guid_t)> const &);
13+
// TODO(@lockshaw)(#pr):
14+
// ConcreteArgSpec
15+
// lower_runtime_arg_ref_spec_to_concrete_arg_spec(
16+
// RuntimeArgRefSpec const &,
17+
// RuntimeArgConfig const &r,
18+
// DeviceSpecific<device_handle_t> const &,
19+
// std::function<std::optional<DeviceSpecificPerDeviceOpState>(symbolic_layer_guid_t)> const &);
2520

2621
ConcreteArgSpec lower_argumentless_arg_ref_to_concrete_arg_spec(
2722
ArgumentlessRuntimeArgRefType,

lib/task-spec/include/task-spec/runtime_task_invocation/per_device_op_state_runtime_arg_ref_type.dtg.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ features = [
99
]
1010

1111
includes = [
12-
"task-spec/symbolic/symbolic_layer_guid_t.dtg.h",
12+
"pcg/parallel_computation_graph/parallel_layer_guid_t.dtg.h",
1313
]
1414

1515
[[fields]]
1616
name = "layer"
17-
type = "::FlexFlow::symbolic_layer_guid_t"
17+
type = "::FlexFlow::parallel_layer_guid_t"

lib/task-spec/include/task-spec/runtime_task_invocation/runtime_arg_ref.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RuntimeArgRef<ProfilingSettings> profiling_settings();
2020
RuntimeArgRef<DeviceSpecific<device_handle_t>> ff_handle();
2121
RuntimeArgRef<FFIterationConfig> iteration_config();
2222
RuntimeArgRef<DeviceType> kernel_device_type();
23-
RuntimeArgRef<PerDeviceOpState> per_device_op_state_for_layer(symbolic_layer_guid_t);
23+
RuntimeArgRef<PerDeviceOpState> per_device_op_state_for_layer(parallel_layer_guid_t);
2424

2525
} // namespace FlexFlow
2626

lib/task-spec/include/task-spec/runtime_task_invocation/runtime_arg_spec.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33

44
#include "task-spec/ops/op_arg_spec.dtg.h"
55
#include "task-spec/runtime_task_invocation/runtime_arg_spec.dtg.h"
6-
#include "task-spec/symbolic/symbolic_layer_tensor_shape_signature.dtg.h"
76

87
namespace FlexFlow {
98

109
std::type_index get_type_index(RuntimeArgSpec const &);
1110

12-
RuntimeArgSpec lower_op_arg_spec_to_runtime_arg_spec(
13-
OpArgSpec const &op_arg_spec,
14-
symbolic_layer_guid_t symbolic_layer_guid,
15-
SymbolicLayerTensorShapeSignature const &op_shape_signature);
16-
17-
RuntimeArgSpec lower_op_arg_ref_spec_to_runtime_arg_spec(
18-
OpArgRefSpec const &,
19-
symbolic_layer_guid_t symbolic_layer_guid,
20-
SymbolicLayerTensorShapeSignature const &);
11+
// TODO(@lockshaw)(#pr):
12+
// RuntimeArgSpec lower_op_arg_spec_to_runtime_arg_spec(
13+
// OpArgSpec const &op_arg_spec,
14+
// symbolic_layer_guid_t symbolic_layer_guid,
15+
// SymbolicLayerTensorShapeSignature const &op_shape_signature);
16+
//
17+
// RuntimeArgSpec lower_op_arg_ref_spec_to_runtime_arg_spec(
18+
// OpArgRefSpec const &,
19+
// symbolic_layer_guid_t symbolic_layer_guid,
20+
// SymbolicLayerTensorShapeSignature const &);
2121

2222
}
2323

lib/task-spec/include/task-spec/symbolic/symbolic_cg_op_attrs_and_training_signature_with_shapes.dtg.toml

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/task-spec/include/task-spec/symbolic/symbolic_cg_op_attrs_and_training_signature_with_shapes.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

lib/task-spec/include/task-spec/symbolic/symbolic_forward_tensor_guid_t.dtg.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)