forked from pytorch/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support tf tf repo macros in external repos. (pytorch#4730)
* Support tf tf repo macros in external repos. * Add patch to tf * Remove patches to TF and implement macro locally. TF references local repo rather than using `clean_dep` that would make it usable externally; prefer local impl rather than patching. * Remove binary * Copy bazel directory into docker. * Remove unused torch bzl library
- Loading branch information
1 parent
2a0b9df
commit ef45ce2
Showing
6 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Macros for working with tensorflow deps.""" | ||
|
||
def if_with_tpu_support(if_true, if_false = []): | ||
"""Shorthand for select()ing whether to build API support for TPUs when building TensorFlow""" | ||
return select({ | ||
"@org_tensorflow//tensorflow:with_tpu_support": if_true, | ||
"//conditions:default": if_false, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters