Hi,
If you have general questions on MLIR that aren't directly related to TensorFlow, then the "community" channels indicated on
https://mlir.llvm.org are probably better.
To answer your question, the snippet of code you showed has an alloc that does not take any operand, so you won't call this builder but the one without operands:
builder.create<AllocOp>(Location location, MemRefType memrefType)
The only thing you need to do is create a MemRefType for <10x20xf64> first, so something like this (I haven't tried to compile this):
FloatType f64Type = FloatType::getF64(ctx);
MemRefType memrefType = MemRefType::get({10 20}, f64Type);
AllocOp alloc = builder.create<AllocOp>(loc, memrefType);
Best,
--
Mehdi