Skip to content

Commit

Permalink
Update dependency from tensorflow-cpu to tensorflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
james-choncholas committed Nov 4, 2024
1 parent c99465b commit e6fb636
Show file tree
Hide file tree
Showing 9 changed files with 715 additions and 415 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ py_wheel(
}),
python_requires = ">=3.9",
python_tag = "INTERPRETER",
requires = ["tensorflow-cpu==2.18.0"], # See also: requirements.in.
requires = ["tensorflow[and-cuda]==2.18.0"], # See also: requirements.in.
# The summary is tailored for each python version because PyPI prevents
# wheel uploads for different versions which have the same contents.
# Changing the summary is sufficient to allow re-uploads.
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# https://github.com/tensorflow/tensorflow/pull/74090
# When the TensorFlow PR is merged, builds for python 3.12 can be re-enabled.
# Note this is not the case as of TensorFlow 2.18.0.
tensorflow-cpu==2.18.0 # See also: top level BUILD, wheel target.
tensorflow[and-cuda]==2.18.0 # See also: top level BUILD, wheel target.
black==24.10.0
267 changes: 171 additions & 96 deletions requirements_3_10.txt

Large diffs are not rendered by default.

267 changes: 171 additions & 96 deletions requirements_3_11.txt

Large diffs are not rendered by default.

265 changes: 170 additions & 95 deletions requirements_3_12.txt

Large diffs are not rendered by default.

267 changes: 171 additions & 96 deletions requirements_3_9.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions tf_shell/test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ py_test(
],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -21,7 +21,7 @@ py_test(
],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -35,7 +35,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -49,7 +49,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -63,7 +63,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -77,7 +77,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -91,7 +91,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -105,7 +105,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -119,7 +119,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -133,7 +133,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -147,7 +147,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -160,7 +160,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -173,7 +173,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -186,7 +186,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -199,7 +199,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -212,7 +212,7 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -225,6 +225,6 @@ py_test(
imports = ["./"],
deps = [
"//tf_shell:tf_shell_lib",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)
22 changes: 11 additions & 11 deletions tf_shell_ml/test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -17,7 +17,7 @@ py_test(
srcs = ["mnist_noenc_backprop_test.py"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -28,7 +28,7 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -38,7 +38,7 @@ py_test(
srcs = ["dropout_test.py"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -48,7 +48,7 @@ py_test(
srcs = ["embedding_test.py"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -58,7 +58,7 @@ py_test(
srcs = ["conv2d_test.py"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -68,7 +68,7 @@ py_test(
srcs = ["max_pool2d_test.py"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -79,7 +79,7 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -90,7 +90,7 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -101,7 +101,7 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -112,6 +112,6 @@ py_test(
tags = ["exclusive"],
deps = [
"//tf_shell_ml",
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)
4 changes: 2 additions & 2 deletions third_party/tensorflow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ py_binary(
srcs = [":extract_tf_includes.py"],
srcs_version = "PY3",
deps = [
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand All @@ -15,7 +15,7 @@ py_binary(
srcs = [":extract_tf_lib.py"],
srcs_version = "PY3",
deps = [
requirement("tensorflow-cpu"),
requirement("tensorflow"),
],
)

Expand Down

0 comments on commit e6fb636

Please sign in to comment.