"examples/model_compress/quantization/QAT_torch_quantizer.py" did not exist on "06a98372aaaaff2bc4f8caf6a115a348bc250191"
Commit a4d40fd0 authored by Paul's avatar Paul
Browse files

Use func dialect

parent 34a7c072
......@@ -402,9 +402,9 @@ struct mlir_program
MlirBlock result = fbody.get();
mlirRegionAppendOwnedBlock(region.get(), fbody.release());
auto ops = create_operation_state("builtin.func");
auto ops = create_operation_state("func.func");
ops.add_attributes(
{{"type", make_function_type(inputs, outputs)}, {"sym_name", std::string("main")}});
{{"function_type", make_function_type(inputs, outputs)}, {"sym_name", std::string("main")}, {"kernel", std::string("mixr")}});
ops.add_region(std::move(region));
insert(body, std::move(ops));
......
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