From d89b5c1112adff70f0b4d142fb14ca21ad0b9367 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Fri, 20 Sep 2024 11:44:17 -0700 Subject: [PATCH] Remove `torch::` namespace reference from LLaMMARunner.mm examples/ code should use the new `executorch::` namespaces. Test Plan: Built the app using the instructions at https://github.com/pytorch/executorch/blob/main/examples/demo-apps/apple_ios/LLaMA/README.md --- .../LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm b/examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm index 31b0df69985..3136d2745fd 100644 --- a/examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm +++ b/examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm @@ -12,7 +12,8 @@ #import #import -using namespace ::torch::executor; +using executorch::extension::llm::Image; +using executorch::runtime::Error; NSErrorDomain const LLaMARunnerErrorDomain = @"LLaMARunnerErrorDomain"; NSErrorDomain const LLaVARunnerErrorDomain = @"LLaVARunnerErrorDomain";