"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "a624e672d2b6cbd6b21a80b765789749267853fe"
Commit a3affafc authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 8822f5d8
...@@ -16,14 +16,15 @@ ...@@ -16,14 +16,15 @@
TEST_CASE(target_copy) TEST_CASE(target_copy)
{ {
auto run_prog = [](migraphx::program p, const migraphx::target& t, auto run_prog = [](migraphx::program p,
migraphx::program::parameter_map& m_in, std::vector<float>& res) const migraphx::target& t,
{ migraphx::program::parameter_map& m_in,
std::vector<float>& res) {
p.compile(t); p.compile(t);
migraphx::program::parameter_map m; migraphx::program::parameter_map m;
for (auto&& x : p.get_parameter_shapes()) for(auto&& x : p.get_parameter_shapes())
{ {
if (m_in.count(x.first) > 0) if(m_in.count(x.first) > 0)
{ {
m[x.first] = t.copy_to(m_in[x.first]); m[x.first] = t.copy_to(m_in[x.first]);
} }
......
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