Skip to content

Commit f5a9d46

Browse files
Jake VanderPlasGoogle-ML-Automation
Jake VanderPlas
authored andcommitted
Move jax/_src/custom_dce.py to its own BUILD rule
Creating smaller build rules enforces better organized dependency graphs in the JAX project, helps pytype propagate annotations correctly, and leads to improved build and iteration times. This was unblocked by moving batching & ad to their own rules in prior changes. PiperOrigin-RevId: 762527517
1 parent c4a90c1 commit f5a9d46

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

jax/BUILD

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ py_library_providing_imports_info(
303303
"_src/callback.py",
304304
"_src/checkify.py",
305305
"_src/custom_batching.py",
306-
"_src/custom_dce.py",
307306
"_src/custom_derivatives.py",
308307
"_src/custom_partitioning.py",
309308
"_src/custom_partitioning_sharding_rule.py",
@@ -390,6 +389,7 @@ py_library_providing_imports_info(
390389
":config",
391390
":core",
392391
":custom_api_util",
392+
":custom_dce",
393393
":custom_transpose",
394394
":deprecations",
395395
":dtypes",
@@ -595,6 +595,24 @@ pytype_strict_library(
595595
srcs = ["_src/custom_api_util.py"],
596596
)
597597

598+
pytype_strict_library(
599+
name = "custom_dce",
600+
srcs = ["_src/custom_dce.py"],
601+
deps = [
602+
":ad",
603+
":api_util",
604+
":batching",
605+
":core",
606+
":custom_api_util",
607+
":mlir",
608+
":partial_eval",
609+
":source_info_util",
610+
":traceback_util",
611+
":tree_util",
612+
":util",
613+
],
614+
)
615+
598616
pytype_strict_library(
599617
name = "custom_transpose",
600618
srcs = ["_src/custom_transpose.py"],

0 commit comments

Comments
 (0)