xref: /aosp_15_r20/external/tensorflow/tensorflow/lite/delegates/gpu/metal/host.m (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7    http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16// This is a shell app used for hosting the unittests. This way any real app
17// startup code doesn't get in the way when running unittests.
18#import <UIKit/UIKit.h>
19
20@interface AppDelegate : UIResponder <UIApplicationDelegate>
21@end
22
23@interface AppDelegate ()
24@end
25
26@implementation AppDelegate
27
28- (BOOL)application:(UIApplication *)application
29    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
30  return YES;
31}
32
33- (void)applicationWillResignActive:(UIApplication *)application {
34}
35
36- (void)applicationDidEnterBackground:(UIApplication *)application {
37}
38
39- (void)applicationWillEnterForeground:(UIApplication *)application {
40}
41
42- (void)applicationDidBecomeActive:(UIApplication *)application {
43}
44
45- (void)applicationWillTerminate:(UIApplication *)application {
46}
47@end
48
49int main(int argc, char *argv[]) {
50  @autoreleasepool {
51    return UIApplicationMain(argc, argv, nil, @"AppDelegate");
52  }
53}
54