Skip to content

Commit

Permalink
Add SameOperandsEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbell10 committed Mar 16, 2023
1 parent 00539ba commit 34973c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/triton/Dialect/Triton/IR/TritonOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ def TT_DotOp : TT_Op<"dot", [Pure,
// Reduce Op
//
def TT_ReduceOp: TT_Op<"reduce",
[Pure, DeclareOpInterfaceMethods<InferTypeOpInterface>, SingleBlock]> {
[Pure,
SameOperandsEncoding,
SingleBlock,
DeclareOpInterfaceMethods<InferTypeOpInterface>]> {
let summary = "Reduction using generic combination algorithm";
let arguments = (ins Variadic<TT_Tensor>:$operands, I32Attr:$axis);
let results = (outs Variadic<TT_Type>:$result);
Expand Down

0 comments on commit 34973c1

Please sign in to comment.