From b361f91d456298282aed5543e2216dc95381e7e1 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Mon, 23 Sep 2024 12:44:09 -0700 Subject: [PATCH] Remove `torch::` namespace reference from LLaMMARunner.mm (#5516) Summary: examples/ code should use the new `executorch::` namespaces. Pull Request resolved: https://github.com/pytorch/executorch/pull/5516 Test Plan: Built the app using the instructions at https://github.com/pytorch/executorch/blob/main/examples/demo-apps/apple_ios/LLaMA/README.md Reviewed By: larryliu0820 Differential Revision: D63138639 Pulled By: dbort fbshipit-source-id: fffb6d35d425dd733eead1b24ee8b9f2831e65c0 --- .../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 31b0df6998..3136d2745f 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";