Emitting MLIR of training step function

40 views
Skip to first unread message

Laszlo Kindrat

unread,
Jun 2, 2021, 11:49:39 AM6/2/21
to MLIR
Hi everyone,

I'm trying to convert a tf.function wrapping an entire training step into MLIR, like in this snippet. I'm using tf 2.5.

The resulting MLIR has the correct shape and type information for the inputs that were explicitly specified (x and y), but the inputs for the model variables all have types tensor<*x!tf.resource>. I wonder if there is a way to keep the shape/type info for these inputs in the emitted MLIR.

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages