Skip to content

Commit 14b3ee3

Browse files
pytorchbotdbort
andauthored
Remove torch:: namespace reference from LLaMMARunner.mm (#5557)
Remove `torch::` namespace reference from LLaMMARunner.mm (#5516) Summary: examples/ code should use the new `executorch::` namespaces. Pull Request resolved: #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 (cherry picked from commit b361f91) Co-authored-by: Dave Bort <[email protected]>
1 parent 0267b77 commit 14b3ee3

File tree

1 file changed

+2
-1
lines changed
  • examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported

1 file changed

+2
-1
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/Exported/LLaMARunner.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#import <executorch/examples/models/llama2/runner/runner.h>
1313
#import <executorch/examples/models/llava/runner/llava_runner.h>
1414

15-
using namespace ::torch::executor;
15+
using executorch::extension::llm::Image;
16+
using executorch::runtime::Error;
1617

1718
NSErrorDomain const LLaMARunnerErrorDomain = @"LLaMARunnerErrorDomain";
1819
NSErrorDomain const LLaVARunnerErrorDomain = @"LLaVARunnerErrorDomain";

0 commit comments

Comments
 (0)