Axel Wong
unread,May 29, 2024, 10:01:44 PMMay 29Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenXLA Discuss, Peter Hawkins, OpenXLA Discuss, Axel Wong
Thanks.
I've managed to find a solution as follows.
mp1 = stablehlo.reduce_window([RankedTensorType.get((1,6,14,14), F32Type.get())], [relu1], [vc4], ir.DenseI64ArrayAttr.get([1,1,2,2]),
window_strides=ir.DenseI64ArrayAttr.get([1,1,2,2]),
base_dilations=ir.DenseI64ArrayAttr.get([1,1,1,1]),
window_dilations=ir.DenseI64ArrayAttr.get([1,1,1,1]),
padding=ir.DenseI64ArrayAttr.get([0,0,0,0]))
block0 = mp1.owner.regions[0].blocks.append(RankedTensorType.get(tuple(), F32Type.get()), RankedTensorType.get(tuple(), F32Type.get()))
with InsertionPoint(block0):
arg0, arg1 = block0.arguments
m = stablehlo.maximum(arg0, arg1)
stablehlo.return_([m])
Axel