Proto data dependent symbolics#5077
Conversation
| return inputs.at(0); | ||
| } | ||
|
|
||
| //TODO: have a function that tells how to link up the symbols to the inputs? Or keep it a simple 1 to 1? |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| //TODO: have a function that tells how to link up the symbols to the inputs? Or keep it a simple 1 to 1? | |
| // TODO: have a function that tells how to link up the symbols to the inputs? Or keep it a | |
| // simple 1 to 1? |
| argument compute(shape, std::vector<argument> args) const | ||
| { | ||
| return args[0]; | ||
| } |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| argument compute(shape, std::vector<argument> args) const | |
| { | |
| return args[0]; | |
| } | |
| argument compute(shape, std::vector<argument> args) const { return args[0]; } |
| * slice(input, ends, axes); starts set | ||
| * slice(input, start, ends, axes); none set | ||
| * `mode` specifies what the inputs to slice are: | ||
| * one_input: slice(input); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| * one_input: slice(input); | |
| * one_input: slice(input); |
| MIGRAPHX_NESTED_ENUM_CLASS( | ||
| slice_mode, | ||
| one_input, | ||
| starts_input, | ||
| ends_input, | ||
| axes_input, | ||
| starts_ends_input, | ||
| starts_axes_input, | ||
| ends_axes_input, | ||
| starts_ends_axes_input | ||
| ); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| MIGRAPHX_NESTED_ENUM_CLASS( | |
| slice_mode, | |
| one_input, | |
| starts_input, | |
| ends_input, | |
| axes_input, | |
| starts_ends_input, | |
| starts_axes_input, | |
| ends_axes_input, | |
| starts_ends_axes_input | |
| ); | |
| MIGRAPHX_NESTED_ENUM_CLASS(slice_mode, | |
| one_input, | |
| starts_input, | |
| ends_input, | |
| axes_input, | |
| starts_ends_input, | |
| starts_axes_input, | |
| ends_axes_input, | |
| starts_ends_axes_input); |
| static auto reflect(Self& self, F f) | ||
| { | ||
| return pack(f(self.axes, "axes"), f(self.starts, "starts"), f(self.ends, "ends")); | ||
| return pack(f(self.axes, "axes"), f(self.starts, "starts"), f(self.ends, "ends"), f(self.mode, "mode")); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| return pack(f(self.axes, "axes"), f(self.starts, "starts"), f(self.ends, "ends"), f(self.mode, "mode")); | |
| return pack(f(self.axes, "axes"), | |
| f(self.starts, "starts"), | |
| f(self.ends, "ends"), | |
| f(self.mode, "mode")); |
| auto ret = mm->add_instruction( | ||
| migraphx::make_op("slice", | ||
| {{"axes", {0}}, | ||
| {"starts", {0}}, | ||
| {"ends", {migraphx::to_value(num_selected_var)}}, | ||
| {"mode", "ends_input"}}), | ||
| idx, | ||
| bind); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| auto ret = mm->add_instruction( | |
| migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); | |
| auto ret = | |
| mm->add_instruction(migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); |
| auto ret = mm->add_instruction( | ||
| migraphx::make_op("slice", | ||
| {{"axes", {0}}, | ||
| {"starts", {0}}, | ||
| {"ends", {migraphx::to_value(num_selected_var)}}, | ||
| {"mode", "ends_input"}}), | ||
| idx, | ||
| bind); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| auto ret = mm->add_instruction( | |
| migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); | |
| auto ret = | |
| mm->add_instruction(migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); |
| auto ret = mm->add_instruction( | ||
| migraphx::make_op("slice", | ||
| {{"axes", {0}}, | ||
| {"starts", {0}}, | ||
| {"ends", {migraphx::to_value(num_selected_var)}}, | ||
| {"mode", "ends_input"}}), | ||
| idx, | ||
| bind); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| auto ret = mm->add_instruction( | |
| migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); | |
| auto ret = | |
| mm->add_instruction(migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); |
| auto ret = mm->add_instruction( | ||
| migraphx::make_op("slice", | ||
| {{"axes", {0}}, | ||
| {"starts", {0}}, | ||
| {"ends", {migraphx::to_value(num_selected_var)}}, | ||
| {"mode", "ends_input"}}), | ||
| idx, | ||
| bind); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| auto ret = mm->add_instruction( | |
| migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); | |
| auto ret = | |
| mm->add_instruction(migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); |
| return mm->add_instruction( | ||
| migraphx::make_op("slice", {{"axes", {0}}, {"starts", {0}}}), idx, cnt); | ||
| migraphx::make_op("slice", | ||
| {{"axes", {0}}, | ||
| {"starts", {0}}, | ||
| {"ends", {migraphx::to_value(num_selected_var)}}, | ||
| {"mode", "ends_input"}}), | ||
| idx, | ||
| bind); |
There was a problem hiding this comment.
[format.py] reported by reviewdog 🐶
| return mm->add_instruction( | |
| migraphx::make_op("slice", {{"axes", {0}}, {"starts", {0}}}), idx, cnt); | |
| migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); | |
| return mm->add_instruction(migraphx::make_op("slice", | |
| {{"axes", {0}}, | |
| {"starts", {0}}, | |
| {"ends", {migraphx::to_value(num_selected_var)}}, | |
| {"mode", "ends_input"}}), | |
| idx, | |
| bind); |
Motivation
Technical Details
Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot ApplicableFollow the LLVM AI Tool Use Policy for contributions using AI.