Skip to content

Commit 0d120ba

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Use Module facade. (#1496)
Summary: Pull Request resolved: #1496 . Reviewed By: larryliu0820 Differential Revision: D52440991 fbshipit-source-id: d4befe38283c56a328f972d662a326c3703f4f96
1 parent 046735b commit 0d120ba

File tree

3 files changed

+3
-119
lines changed

3 files changed

+3
-119
lines changed

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/MobileNet/MobileNetClassifier.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "MobileNetClassifier.h"
1010

11-
#include "Module.h"
11+
#import <executorch/extension/runner/module.h>
1212

1313
using namespace ::torch::executor;
1414

@@ -18,15 +18,15 @@
1818
const int32_t kChannels = 3;
1919

2020
@implementation ETMobileNetClassifier {
21-
std::unique_ptr<demo::Module> _module;
21+
std::unique_ptr<Module> _module;
2222
}
2323

2424
- (nullable instancetype)initWithFilePath:(NSString*)filePath
2525
error:(NSError**)error {
2626
self = [super init];
2727
if (self) {
2828
try {
29-
_module = std::make_unique<demo::Module>(filePath.UTF8String);
29+
_module = std::make_unique<Module>(filePath.UTF8String);
3030
} catch (const std::exception& exception) {
3131
if (error) {
3232
*error = [NSError

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/MobileNet/Module.cpp

Lines changed: 0 additions & 77 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/MobileNet/Module.h

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)