[mlir][ods] Fix incorrect accessing of segment_sizes

The previous change resulted in prefixing a query that uses the raw
attribute as if function invocation. Fixing quickly, with updated test
to follow.
This commit is contained in:
Jacques Pienaar 2021-10-26 16:04:15 -07:00
parent 1d2a4cd57d
commit 332ce23f3c
1 changed files with 1 additions and 1 deletions

View File

@ -2443,7 +2443,7 @@ OpOperandAdaptorEmitter::OpOperandAdaptorEmitter(const Operator &op)
ERROR_IF_PRUNED(m, "getOperands", op);
m->body() << " return odsOperands;";
}
std::string attr = op.getGetterName("operand_segment_sizes");
std::string attr = "operand_segment_sizes";
std::string sizeAttrInit = formatv(adapterSegmentSizeAttrInitCode, attr);
generateNamedOperandGetters(op, adaptor,
/*isAdaptor=*/true, sizeAttrInit,