[DOCS] Added matrix multiplication tutorial
This commit is contained in:
@@ -30,7 +30,7 @@ void module::set_value(const std::string& name, ir::basic_block *block, ir::valu
|
||||
if(it != metadatas_.end()){
|
||||
x->set_metadata(it->second.first, it->second.second);
|
||||
}
|
||||
value->set_name(name);
|
||||
// value->set_name(name);
|
||||
}
|
||||
|
||||
void module::set_value(const std::string& name, ir::value *value){
|
||||
|
@@ -288,6 +288,9 @@ function::function(const std::string& src, const options_t &opt, driver::device
|
||||
// find indices of autotune keys
|
||||
for(const std::string& name: tune_key){
|
||||
auto pred = [&](ir::argument* arg) { return arg->get_name() == name; };
|
||||
// std::cout << "----" << std::endl;
|
||||
// for(ir::argument* arg: args)
|
||||
// std::cout << arg->get_name() << std::endl;
|
||||
auto it = std::find_if(args.begin(), args.end(), pred);
|
||||
if(it == args.end())
|
||||
throw std::runtime_error(name + " is not a valid argument name");
|
||||
|
Reference in New Issue
Block a user