"vscode:/vscode.git/clone" did not exist on "568a6a55794a96aa284b2955c396eef7e2e0d7e5"
Commit 210f7700 authored by Paul's avatar Paul
Browse files

Format

parent fa62ad24
......@@ -44,10 +44,7 @@ struct parse_slice : op_parser<parse_slice>
std::vector<int64_t> steps;
std::vector<int64_t> raxes;
void always_insert(instruction_ref arg)
{
op_args.insert(op_args.begin(), arg);
}
void always_insert(instruction_ref arg) { op_args.insert(op_args.begin(), arg); }
std::vector<int64_t> insert(instruction_ref arg)
{
......
......@@ -6298,7 +6298,8 @@ TEST_CASE(slice_constant_test)
{
migraphx::program p;
auto* mm = p.get_main_module();
auto l0 = mm->add_literal(migraphx::literal{migraphx::shape{migraphx::shape::float_type, {3, 2}}, {0, 1, 2, 3, 4, 5}});
auto l0 = mm->add_literal(migraphx::literal{
migraphx::shape{migraphx::shape::float_type, {3, 2}}, {0, 1, 2, 3, 4, 5}});
mm->add_instruction(
migraphx::make_op("slice", {{"axes", {0, 1}}, {"starts", {1, 0}}, {"ends", {2, 2}}}), l0);
auto prog = optimize_onnx("slice_constant_test.onnx");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment