"test/vscode:/vscode.git/clone" did not exist on "4983fecd4178da7e84478b6e8b035554baa0f3c0"
Commit 50b98355 authored by Paul's avatar Paul
Browse files

Remove output buffers

parent 8d8cd8f0
...@@ -38,11 +38,12 @@ namespace driver { ...@@ -38,11 +38,12 @@ namespace driver {
struct precompile_op : action<precompile_op> struct precompile_op : action<precompile_op>
{ {
static program create_preop_program(const operation& preop, const std::vector<shape>& inputs) static program create_preop_program(const operation& preop, std::vector<shape> inputs)
{ {
program p; program p;
auto mm = p.get_main_module(); auto mm = p.get_main_module();
std::vector<instruction_ref> args; std::vector<instruction_ref> args;
inputs.pop_back();
transform(inputs, range(inputs.size()), std::back_inserter(args), [&](auto input, auto i) { transform(inputs, range(inputs.size()), std::back_inserter(args), [&](auto input, auto i) {
return mm->add_parameter("x" + std::to_string(i), input); return mm->add_parameter("x" + std::to_string(i), input);
}); });
......
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