Liwei Dai
unread,Dec 3, 2022, 9:11:49 PM12/3/22Sign 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 MLIR, joke...@gmail.com, MLIR, voidmai...@gmail.com
Hello Mehdi,
But is there like any simple tutorials on how to enable and unittest MLIR in original pip install tensorflow?
As an end user, what I'm looking for is doing some test to see how MLIR is working in tensorflow.
For example, I was doing simple op unittest by running for example an "relu" operation on GPU and CPU with the same input numpy arrays, and check if the results match.
Meanwhile I can also do simple profilings using nvprof or NSight tools.
I can also run models, for example, a Resnet50 on imagenet, on both GPU and CPU, and check results or do profiling.
Now with XLA, I can simple set some environment variables without changing the python code to run the same operation and model, and do the same thing.
But how do I verify the effect of MLIR in tensorflow? I thought it was like XLA, just setting some environment variables, but I didn't find any resources.