|
8 | 8 |
|
9 | 9 | TEST(CppAPITests, TestCollectionNormalInput) {
|
10 | 10 |
|
11 |
| - std::string path = "/root/Torch-TensorRT/normal_model.ts"; |
| 11 | + std::string path = "tests/modules/normal_model.jit.pt"; |
12 | 12 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
13 | 13 | std::vector<at::Tensor> inputs;
|
14 | 14 | inputs.push_back(in0);
|
@@ -53,7 +53,7 @@ TEST(CppAPITests, TestCollectionNormalInput) {
|
53 | 53 |
|
54 | 54 | TEST(CppAPITests, TestCollectionTupleInput) {
|
55 | 55 |
|
56 |
| - std::string path = "/root/Torch-TensorRT/tuple_input.ts"; |
| 56 | + std::string path = "tests/modules/tuple_input.jit.pt"; |
57 | 57 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
58 | 58 |
|
59 | 59 | torch::jit::Module mod;
|
@@ -103,7 +103,7 @@ TEST(CppAPITests, TestCollectionTupleInput) {
|
103 | 103 |
|
104 | 104 | TEST(CppAPITests, TestCollectionListInput) {
|
105 | 105 |
|
106 |
| - std::string path = "/root/Torch-TensorRT/list_input.ts"; |
| 106 | + std::string path = "tests/modules/list_input.jit.pt"; |
107 | 107 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
108 | 108 | std::vector<at::Tensor> inputs;
|
109 | 109 | inputs.push_back(in0);
|
@@ -169,7 +169,7 @@ TEST(CppAPITests, TestCollectionListInput) {
|
169 | 169 |
|
170 | 170 | TEST(CppAPITests, TestCollectionTupleInputOutput) {
|
171 | 171 |
|
172 |
| - std::string path = "/root/Torch-TensorRT/tuple_input_output.ts"; |
| 172 | + std::string path = "tests/modules/tuple_input_output.jit.pt"; |
173 | 173 |
|
174 | 174 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
175 | 175 |
|
@@ -224,7 +224,7 @@ TEST(CppAPITests, TestCollectionTupleInputOutput) {
|
224 | 224 |
|
225 | 225 | TEST(CppAPITests, TestCollectionListInputOutput) {
|
226 | 226 |
|
227 |
| - std::string path = "/root/Torch-TensorRT/list_input_output.ts"; |
| 227 | + std::string path = "tests/modules/list_input_output.jit.pt"; |
228 | 228 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
229 | 229 | std::vector<at::Tensor> inputs;
|
230 | 230 | inputs.push_back(in0);
|
@@ -296,7 +296,7 @@ TEST(CppAPITests, TestCollectionListInputOutput) {
|
296 | 296 |
|
297 | 297 | TEST(CppAPITests, TestCollectionComplexModel) {
|
298 | 298 |
|
299 |
| - std::string path = "/root/Torch-TensorRT/complex_model.ts"; |
| 299 | + std::string path = "tests/modules/complex_model.jit.pt"; |
300 | 300 | torch::Tensor in0 = torch::randn({1, 3, 512, 512}, torch::kCUDA).to(torch::kHalf);
|
301 | 301 | std::vector<at::Tensor> inputs;
|
302 | 302 | inputs.push_back(in0);
|
|
0 commit comments