diff --git a/_includes/selector.html b/_includes/selector.html index ee637c40235..a369dee2b80 100644 --- a/_includes/selector.html +++ b/_includes/selector.html @@ -244,12 +244,12 @@ -
" + pkg + "
").join(", ");
notes = [...notes]
} else {
@@ -673,8 +702,7 @@
},
disableUnsupportedCuda(cuda_version) {
var isDisabled = false;
- if (this.active_additional_packages.includes("TensorFlow") && (cuda_version !== "12.0")) isDisabled = true;
- if (this.active_method === "Docker" && cuda_version < "11.8") isDisabled = true;
+ if (this.active_additional_packages.includes("TensorFlow") && (!cuda_version.startsWith("12"))) isDisabled = true;
if (this.active_release === "Stable" && cuda_version === "12.5") isDisabled = true;
return isDisabled;
},
@@ -705,22 +733,26 @@
releaseClickHandler(e, release) {
if (this.isDisabled(e.target)) return;
this.active_release = release;
- if ( this.active_release === "Stable" && this.active_cuda_ver === "12.5") {
- this.active_cuda_ver = "12.2";
+ if (this.active_release === "Stable" && this.active_docker_cuda_ver === "12.5") {
+ this.active_docker_cuda_ver = "12.2";
}
},
imgTypeClickHandler(e, type) {
if (this.isDisabled(e.target)) return;
this.active_img_type = type;
},
- cudaClickHandler(e, version) {
+ condaCUDAClickHandler(e, version) {
if (this.isDisabled(e.target)) return;
- this.active_cuda_ver = version;
+ this.active_conda_cuda_ver = version;
},
pipCUDAClickHandler(e, version) {
if (this.isDisabled(e.target)) return;
this.active_pip_cuda_ver = version;
},
+ dockerCUDAClickHandler(e, version) {
+ if (this.isDisabled(e.target)) return;
+ this.active_docker_cuda_ver = version;
+ },
pythonClickHandler(e, version) {
if (this.isDisabled(e.target)) return;
this.active_python_ver = version;
@@ -789,7 +821,7 @@
return;
}
this.active_additional_packages = [...this.active_additional_packages, package];
- if (this.active_additional_packages.includes("TensorFlow") && (this.active_cuda_ver !== "12.0")) this.active_cuda_ver = "12.0";
+ if (this.active_additional_packages.includes("TensorFlow") && this.active_conda_cuda_ver !== "12") this.active_conda_cuda_ver = "12";
},
copyToClipboard() {
let range = document.createRange();