Commit 27297b0b authored by jerryyin's avatar jerryyin
Browse files

misc changes according to review feedbacks

parent ceb52de0
......@@ -174,9 +174,6 @@ std::string cpp_generator::generate_point_op(const operation& op,
else if(with_char(::isdigit)(key[0]))
{
auto i = std::stoul(key);
// For an optional argument where i >= args.size(), treat
// the optional argument as a straight zero. This will
// cacel out the optional bias, if it exists.
if(i >= args.size())
MIGRAPHX_THROW("Invalid argument index: " + key);
return args.at(i);
......
......@@ -92,7 +92,7 @@ namespace {
MIGRAPHX_PRED_MATCHER(is_mlir_conv, instruction_ref ins)
{
if(ins->name() != "convolution" && ins->name() != "quant_convolution")
if(ins->name() != "convolution" and ins->name() != "quant_convolution")
return false;
value v = ins->get_operator().to_value();
auto group = v.at("group").to<int>();
......
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