diff --git a/.github/workflows/compile-test.yml b/.github/workflows/compile-test.yml index 32ac662..04f7155 100644 --- a/.github/workflows/compile-test.yml +++ b/.github/workflows/compile-test.yml @@ -45,7 +45,7 @@ jobs: - name: Download and extract libtorch cpu run: | mkdir -p third_party - curl -L "https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.11.0%2Bcpu.zip" -o third_party/libtorch-cpu.zip + curl -L "https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.13.0%2Bcpu.zip" -o third_party/libtorch-cpu.zip unzip -q third_party/libtorch-cpu.zip -d third_party - name: Configure with CMake @@ -135,16 +135,16 @@ jobs: with: python-version: "3.10" - - name: Install Paddle nightly cu130 + - name: Install Paddle nightly cu126 run: | python -m pip install --upgrade pip - python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu130/ + python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/ - - name: Download and extract libtorch cu130 + - name: Download and extract libtorch cu126 run: | mkdir -p third_party - curl -L "https://download.pytorch.org/libtorch/cu130/libtorch-shared-with-deps-2.11.0%2Bcu130.zip" -o third_party/libtorch-cu130.zip - unzip -q third_party/libtorch-cu130.zip -d third_party + curl -L "https://download.pytorch.org/libtorch/cu126/libtorch-shared-with-deps-2.13.0%2Bcu126.zip" -o third_party/libtorch-cu126.zip + unzip -q third_party/libtorch-cu126.zip -d third_party - name: Configure with CMake run: | diff --git a/test/ATen/core/TensorAccessorTest.cpp b/test/ATen/core/TensorAccessorTest.cpp index 19d7204..ac55f5e 100644 --- a/test/ATen/core/TensorAccessorTest.cpp +++ b/test/ATen/core/TensorAccessorTest.cpp @@ -123,17 +123,6 @@ TEST_F(TensorAccessorTest, IsNonOverlappingAndDense) { file.saveFile(); } -// 测试 has_names -TEST_F(TensorAccessorTest, HasNames) { - auto file_name = g_custom_param.get(); - FileManerger file(file_name); - file.openAppend(); - file << "HasNames "; - file << std::to_string(tensor.has_names()) << " "; - file << "\n"; - file.saveFile(); -} - // 测试 TensorAccessor - accessor() 返回 TensorAccessor TEST_F(TensorAccessorTest, TensorAccessorBasic) { auto file_name = g_custom_param.get(); diff --git a/test/ATen/ops/MiscTensorTest.cpp b/test/ATen/ops/MiscTensorTest.cpp index 969b913..6882e97 100644 --- a/test/ATen/ops/MiscTensorTest.cpp +++ b/test/ATen/ops/MiscTensorTest.cpp @@ -68,18 +68,6 @@ std::string GetTestCaseResultFileName() { return base + "_" + test_name + ".txt"; } -TEST(TensorBodyTest, Rename) { - auto file_name = g_custom_param.get(); - paddle_api_test::FileManerger file(file_name); - file.openAppend(); - file << "Rename "; - at::Tensor tensor = at::ones({2, 3, 4}, at::kFloat); - at::Tensor renamed = tensor.rename(std::nullopt); - file << std::to_string(renamed.sizes().size()) << " "; - file << "\n"; - file.saveFile(); -} - TEST(TensorBodyTest, DtypeMethod) { FileManerger file(GetTestCaseResultFileName()); file.openAppend();