This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 220c953f0ba AINode: depend torch of cpu version (#13670)
220c953f0ba is described below
commit 220c953f0ba93f103d61791675f13763f1164497
Author: YangCaiyin <[email protected]>
AuthorDate: Tue Oct 8 11:43:09 2024 +0800
AINode: depend torch of cpu version (#13670)
---
iotdb-core/ainode/resources/conf/ainode-env.bat | 4 ++--
iotdb-core/ainode/resources/conf/ainode-env.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/iotdb-core/ainode/resources/conf/ainode-env.bat
b/iotdb-core/ainode/resources/conf/ainode-env.bat
index 6676b8a842b..fa304528a5c 100644
--- a/iotdb-core/ainode/resources/conf/ainode-env.bat
+++ b/iotdb-core/ainode/resources/conf/ainode-env.bat
@@ -109,13 +109,13 @@ cd lib
for %%i in (*.whl *.tar.gz) do (
echo %%i | findstr "ainode" >nul && (
echo Installing ainode body: %%i
- %ain_interpreter_dir% -m pip install %%i %ain_force_reinstall% -i
https://pypi.tuna.tsinghua.edu.cn/simple --no-warn-script-location
%ain_no_dependencies% --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
+ %ain_interpreter_dir% -m pip install %%i %ain_force_reinstall%
--no-warn-script-location %ain_no_dependencies% --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
) || (
@REM if ain_only_ainode is 0 then install dependencies
if %ain_only_ainode% == 0 (
echo Installing dependencies: %%i
set ain_force_reinstall=--force-reinstall
- %ain_interpreter_dir% -m pip install %%i %ain_force_reinstall% -i
https://pypi.tuna.tsinghua.edu.cn/simple --no-warn-script-location
%ain_no_dependencies% --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
+ %ain_interpreter_dir% -m pip install %%i %ain_force_reinstall%
--no-warn-script-location %ain_no_dependencies% --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
)
)
if %errorlevel% == 1 (
diff --git a/iotdb-core/ainode/resources/conf/ainode-env.sh
b/iotdb-core/ainode/resources/conf/ainode-env.sh
index 6e9eec3d7a1..b2737ebe150 100644
--- a/iotdb-core/ainode/resources/conf/ainode-env.sh
+++ b/iotdb-core/ainode/resources/conf/ainode-env.sh
@@ -114,9 +114,9 @@ for i in *.whl *.tar.gz; do
if [[ $i =~ "ainode" ]]; then
echo Installing AINode body: $i
if [ -z "$p_pypi_mirror" ]; then
- $ain_interpreter_dir -m pip install "$i" $p_ain_force_reinstall
--no-warn-script-location $p_ain_no_dependencies
+ $ain_interpreter_dir -m pip install "$i" $p_ain_force_reinstall
--no-warn-script-location $p_ain_no_dependencies --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
else
- $ain_interpreter_dir -m pip install "$i" $p_ain_force_reinstall -i
$p_pypi_mirror --no-warn-script-location $p_ain_no_dependencies
+ $ain_interpreter_dir -m pip install "$i" $p_ain_force_reinstall -i
$p_pypi_mirror --no-warn-script-location $p_ain_no_dependencies --find-links
https://download.pytorch.org/whl/cpu/torch_stable.html
fi
else
# if ain_only_ainode is 0 then install dependencies