Repository navigation
Remove TF dependency from IREE core - #4450
Conversation
|
LGTM - this makes it really clear where the entire integrations/tensorflow/ dir could be split (if/when we want to) - very cool! |
| // limitations under the License. | ||
|
|
||
| #include "integrations/tensorflow/compiler/Passes.h" | ||
| #include "compiler/Passes.h" |
There was a problem hiding this comment.
This is not great. We probably want to deepen the directory path by one level so we have a unique-ish top-level path segment. ie. move everything in integrations/tensorflow down by one level under a new iree_tensorflow directory.
Can do in a follow-up if needed, I guess.
There was a problem hiding this comment.
Yes, agreed. I was just doing the changes to make it build, but I don't like this at all
There was a problem hiding this comment.
How about just renaming the compiler/ directory to iree_tf_compiler?
|
Still TODO:
|
c245a95 to
35e76ec
Compare
|
I gave up on preserving history and squashed this down to a single commit |
35e76ec to
fec0800
Compare
stellaraccident
left a comment
There was a problem hiding this comment.
LGTM. If it works, I have nothing to add :)
|
Awesome Geoffrey! One minor remark: Also with the alias set, does |
Huh... yeah it should be. I'm confused why the bazel_to_cmake check isn't failing though... |
Well I think we only check if there is a diff. |
ARGH it should be failing on those I thought. Thanks for catching this |
b2c4332 to
9662f88
Compare
ScottTodd
left a comment
There was a problem hiding this comment.
Just scanned a few files...
Do you expect this to change the developer instructions for building IREE with Bazel/CMake?
e.g.
https://google.github.io/iree/get-started/getting-started-linux-bazel
https://google.github.io/iree/get-started/getting-started-linux-cmake
(the python docs are due for a total rewrite anyway :P)
Neither of those docs should require a change other than we might be able to get rid of some dependencies (which I'm planning to do there and in our docker containers as part of the follow-on cleanup to this). |

This completely strips TensorFlow as a dependency of the core part of
IREE (basically everything other than
integrations/). TF integrationsare in a separate workspace under
integrations/tensorflow.We still depend on mlir-hlo, which is exported as part of the TF repo,
but also available as the https://github.com/tensorflow/mlir-hlo
repository, which we use here as a submodule. To avoid ODR issues, when
built with integrations TensorFlow we define
@mlir-hloto containaliases for the rules present in TF.
Fixes #4480
Fixes #3312
Most of #3311 (leaving open for
cleanup work)