"configs/datasets/vscode:/vscode.git/clone" did not exist on "e9cdb24dddde3419ae490a649cff9d79947ed45c"
Commit cd07476b authored by Paul's avatar Paul
Browse files

Formatting

parent b546a9f3
...@@ -118,11 +118,11 @@ shape program::get_parameter_shape(std::string name) ...@@ -118,11 +118,11 @@ shape program::get_parameter_shape(std::string name)
std::unordered_map<std::string, shape> program::get_parameter_shapes() const std::unordered_map<std::string, shape> program::get_parameter_shapes() const
{ {
std::unordered_map<std::string, shape> result; std::unordered_map<std::string, shape> result;
for(auto&& ins:impl->instructions) for(auto&& ins : impl->instructions)
{ {
if(ins.op.name() == "@param") if(ins.op.name() == "@param")
{ {
auto&& name = any_cast<builtin::param>(ins.op).parameter; auto&& name = any_cast<builtin::param>(ins.op).parameter;
result[name] = ins.result; result[name] = ins.result;
} }
} }
......
...@@ -20,7 +20,7 @@ migraph::argument run_cpu() ...@@ -20,7 +20,7 @@ migraph::argument run_cpu()
auto p = v.create_program(); auto p = v.create_program();
p.compile(migraph::cpu::cpu_target{}); p.compile(migraph::cpu::cpu_target{});
migraph::program::parameter_map m; migraph::program::parameter_map m;
for(auto&& x:p.get_parameter_shapes()) for(auto&& x : p.get_parameter_shapes())
{ {
m[x.first] = migraph::generate_argument(x.second); m[x.first] = migraph::generate_argument(x.second);
} }
...@@ -35,9 +35,9 @@ migraph::argument run_gpu() ...@@ -35,9 +35,9 @@ migraph::argument run_gpu()
p.compile(migraph::gpu::target{}); p.compile(migraph::gpu::target{});
migraph::program::parameter_map m; migraph::program::parameter_map m;
for(auto&& x:p.get_parameter_shapes()) for(auto&& x : p.get_parameter_shapes())
{ {
m[x.first] = migraph::gpu::to_gpu(migraph::generate_argument(x.second)); m[x.first] = migraph::gpu::to_gpu(migraph::generate_argument(x.second));
} }
return migraph::gpu::from_gpu(p.eval(m)); return migraph::gpu::from_gpu(p.eval(m));
......
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