Skip to content

Commit

Permalink
Fix fbcode//multipy/runtime tests (#327)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #327

Reviewed By: A-Kokolis

Differential Revision: D49651494

fbshipit-source-id: dcc39e0b7c4cb66054fff22c77e21c8abbd3516f
  • Loading branch information
calebho authored and facebook-github-bot committed Sep 26, 2023
1 parent 2460dc6 commit 765dfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multipy/runtime/test_deploy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ TEST(TorchpyTest, TestPyYAML) {
torch::deploy::InterpreterManager m(2);
auto I = m.acquireOne();

auto load = I.global("yaml", "load")({kDocument});
auto load = I.global("yaml", "full_load")({kDocument});
EXPECT_EQ(1, load.attr("__getitem__")({"a"}).toIValue().toInt());

auto dump = I.global("yaml", "dump")({load});
Expand Down
2 changes: 1 addition & 1 deletion multipy/runtime/test_deploy_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ TEST(TorchpyTest, TestPyYAML) {
torch::deploy::InterpreterManager m(2);
auto I = m.acquireOne();

auto load = I.global("yaml", "load")({kDocument});
auto load = I.global("yaml", "full_load")({kDocument});
EXPECT_EQ(1, load.attr("__getitem__")({"a"}).toIValue().toInt());

auto dump = I.global("yaml", "dump")({load});
Expand Down

0 comments on commit 765dfef

Please sign in to comment.