Skip to content

Commit

Permalink
fix: Use scripting instead of tracing for module fallback tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj Peri <peri.dheeraj@gmail.com>
  • Loading branch information
peri044 committed Oct 9, 2021
1 parent 282e98a commit 32e8b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpp/test_module_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
TEST(CppAPITest, ResNetModuleFallbacksCorrectly) {
torch::jit::script::Module mod;
try {
mod = torch::jit::load("tests/modules/resnet18_traced.jit.pt");
mod = torch::jit::load("tests/modules/resnet18_scripted.jit.pt");
} catch (const c10::Error& e) {
std::cerr << "error loading the model\n";
ASSERT_TRUE(false);
Expand Down Expand Up @@ -35,7 +35,7 @@ TEST(CppAPITest, ResNetModuleFallbacksCorrectly) {
TEST(CppAPITest, MobileNetModuleFallbacksCorrectlyWithOneEngine) {
torch::jit::script::Module mod;
try {
mod = torch::jit::load("tests/modules/mobilenet_v2_traced.jit.pt");
mod = torch::jit::load("tests/modules/mobilenet_v2_scripted.jit.pt");
} catch (const c10::Error& e) {
std::cerr << "error loading the model\n";
ASSERT_TRUE(false);
Expand Down

0 comments on commit 32e8b53

Please sign in to comment.