Add size_hint operand to the Python interface.
Fix pytaco.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D137754
tensor_type: Type,
dynamic_sizes: Sequence[Value],
copy: Value,
+ size_hint: Value,
escape: BoolAttr,
*,
loc=None,
attributes["escape"] = escape
op = self.build_generic(
results=[tensor_type],
- operands=[dynamic_sizes, copy],
+ operands=[dynamic_sizes, copy, size_hint],
attributes=attributes,
loc=loc,
ip=ip)
mlir_type = _mlir_tensor_type(self.dst_dtype, self.dst_dims,
self.dst_format.mlir_tensor_attr())
index_type = ir.IndexType.get()
- return bufferization.AllocTensorOp(mlir_type, [], None, None)
+ return bufferization.AllocTensorOp(mlir_type, [], None, None, None)
class _Stats: