Commit 7b55afee authored by wsttiger's avatar wsttiger
Browse files

Cleanup

parent 05031d74
...@@ -57,9 +57,6 @@ void hip_contiguous(migraph::shape output_shape, migraph::argument arg, migraph: ...@@ -57,9 +57,6 @@ void hip_contiguous(migraph::shape output_shape, migraph::argument arg, migraph:
} }
dim3 nblocks(512); dim3 nblocks(512);
dim3 nthreads(512); dim3 nthreads(512);
// std::cout << "nelements: " << s.elements() << std::endl;
// std::cout << "A ptr: " << input.data() << std::endl;
// std::cout << "At ptr: " << output.data() << std::endl;
hipLaunchKernelGGL((contiguous_gpu<int, 4>), hipLaunchKernelGGL((contiguous_gpu<int, 4>),
nblocks, nblocks,
nthreads, nthreads,
......
...@@ -201,13 +201,6 @@ struct miopen_contiguous ...@@ -201,13 +201,6 @@ struct miopen_contiguous
} }
argument compute(context&, shape output_shape, std::vector<argument> args) const argument compute(context&, shape output_shape, std::vector<argument> args) const
{ {
// argument result{output_shape};
// visit_all(result, from_gpu(args[0]))([&](auto output, auto input) {
// shape_for_each(output.get_shape(), [&](const auto& idx) {
// output(idx.begin(), idx.end()) = input(idx.begin(), idx.end());
// });
// });
// return to_gpu(result);
hip_contiguous(output_shape, args.at(0), args.at(1)); hip_contiguous(output_shape, args.at(0), args.at(1));
return args.at(1); return args.at(1);
} }
......
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