[PYTHON][OPS] Bugfix in conv fprop
This commit is contained in:
@@ -514,7 +514,6 @@ void gen_torch_make_handles(std::ostream &os,
|
||||
}
|
||||
|
||||
void gen_torch_make_launch_function(std::ostream &os, const std::vector<ir::argument*>& args) {
|
||||
os << " std::cout << 9 << std::endl;";
|
||||
os << " std::function<void()> run = [&](){\n ";
|
||||
os << " (*id_fn_map.at(id))({";
|
||||
for(unsigned i = 0; i < args.size() ; i++){
|
||||
@@ -529,7 +528,6 @@ void gen_torch_make_launch_function(std::ostream &os, const std::vector<ir::argu
|
||||
os << "}, *id_grid_map.at(id), &stream);\n";
|
||||
os << " };\n ";
|
||||
os << " run();";
|
||||
os << " std::cout << 10 << std::endl;";
|
||||
os << " if(bench > 0)\n ";
|
||||
os << " i64scalar_map[bench_id] = triton::tools::bench(run, &stream);\n ";
|
||||
}
|
||||
@@ -588,14 +586,10 @@ extern std::map<size_t, int64_t> i64scalar_map;
|
||||
|
||||
gen_torch_signature(oss, fn, outputs, name);
|
||||
oss << " {" << std::endl;
|
||||
oss << " std::cout << 1 << std::endl;";
|
||||
gen_torch_init_driver(oss, fn->args());
|
||||
gen_torch_make_handles(oss, fn->args());
|
||||
oss << " std::cout << 2 << std::endl;";
|
||||
gen_torch_make_launch_function(oss, fn->args());
|
||||
oss << " std::cout << 3 << std::endl;";
|
||||
gen_torch_ret(oss, outputs);
|
||||
oss << " std::cout << \"done\" << std::endl;\n";
|
||||
oss << "}" << std::endl;
|
||||
|
||||
oss << std::endl;
|
||||
|
Reference in New Issue
Block a user