Repository navigation
Add mixed static-dynamic arguments interface - #5335
Conversation
| bbArg); | ||
| repl = b.create<IREE::Flow::DispatchTensorLoadOp>( | ||
| loc, operand.getType(), bbArg, ArrayRef<Value>({}), | ||
| ArrayRef<Value>({}), ArrayRef<Value>({}), b.getI64ArrayAttr({}), |
There was a problem hiding this comment.
can you add a builder to the op that defaulted these? this is pretty nasty to try to get right
There was a problem hiding this comment.
Yes, I am looking into this Interestingly there is a build for b.create<IREE::Flow::DispatchTensorLoadOp>(loc, operand.getType(), bbArg) but it creates an op that crashes because $source is Nil might be incorrectly parsing due to a bug in the interface ?!
There was a problem hiding this comment.
Thats weird, the source should not be nil right.
Nit: You can also just do ArrayRef<Value>() instead of ArrayRef<Value>({})
MaheshRavishankar
left a comment
There was a problem hiding this comment.
This looks good to me! I'll defer to Ben for any other comments.
| bbArg); | ||
| repl = b.create<IREE::Flow::DispatchTensorLoadOp>( | ||
| loc, operand.getType(), bbArg, ArrayRef<Value>({}), | ||
| ArrayRef<Value>({}), ArrayRef<Value>({}), b.getI64ArrayAttr({}), |
There was a problem hiding this comment.
Thats weird, the source should not be nil right.
Nit: You can also just do ArrayRef<Value>() instead of ArrayRef<Value>({})
31f0e15 to
ab7bcfc
Compare
|
I think this addresses Ben's comment. Feel free to submit. |
|
FYI: this causes test failures in |
Use OffsetSizeAndStrideOpInterface for flow.dispatch.tensor.{load|store} ops to enable mixed static / dynamic operands.