Repository navigation
[Flow] Support dispatch tracing when encodings are present - #20447
Conversation
Signed-off-by: Max Dawkins <[email protected]>
hanhanW
left a comment
There was a problem hiding this comment.
I see what you're trying to do, and I agree that it helps debugging. I did some investigation and I feel the direction should be #20450
Assigning to me now and I'll revisit later. This is fine to go for now.
(I considered the other approach, which moves the injection to Stream, then we lose the needs of flow.tensor.trace. We might still need the op because it allows users to inject tracing ops when they want.)
Cool, thanks for taking such a detailed look! I started out trying to get the encoded tensors to print, but I gave up around the specialization phase because the op was missing some interface implementations and I didn't know what to do. Would definitely be much better to be able to print the full encoded tensor. |
Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Max Dawkins <[email protected]>
…20447) Enables dispatch tracing when the dispatch op has encoded operands or results. New `flow.tensor.encode` ops are inserted to bring the tensor back to the row-major layout before adding the tracing ops because the `flow.tensor.trace` op cannot handle encoded tensors. The tensor is not printed in the encoded layout with this revision, but it still adds helpful debug information, and prevents compilation failures when adding dispatch tracing. --------- Signed-off-by: Max Dawkins <[email protected]>
Enables dispatch tracing when the dispatch op has encoded operands or results. New `flow.tensor.encode` ops are inserted to bring the tensor back to the row-major layout before adding the tracing ops because the `flow.tensor.trace` op cannot handle encoded tensors. The tensor is not printed in the encoded layout with this revision, but it still adds helpful debug information, and prevents compilation failures when adding dispatch tracing. --------- Signed-off-by: Max Dawkins <[email protected]>
Enables dispatch tracing when the dispatch op has encoded operands or results. New
flow.tensor.encodeops are inserted to bring the tensor back to the row-major layout before adding the tracing ops because theflow.tensor.traceop cannot handle encoded tensors. The tensor is not printed in the encoded layout with this revision, but it still adds helpful debug information, and prevents compilation failures when adding dispatch tracing.