We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5db2a commit a0170fbCopy full SHA for a0170fb
mobile/examples/phi-3/ios/LocalLLM/LocalLLM/ContentView.swift
@@ -1,3 +1,6 @@
1
+// Copyright (c) Microsoft Corporation. All rights reserved.
2
+// Licensed under the MIT License.
3
+
4
import SwiftUI
5
6
mobile/examples/phi-3/ios/LocalLLM/LocalLLM/GenAIGenerator.mm
@@ -18,8 +18,10 @@ @interface GenAIGenerator () {
18
19
@implementation GenAIGenerator
20
21
-typedef std::chrono::high_resolution_clock Clock;
+typedef std::chrono::steady_clock Clock;
22
typedef std::chrono::time_point<Clock> TimePoint;
23
+static std::unique_ptr<OgaModel> model = nullptr;
24
+static std::unique_ptr<OgaTokenizer> tokenizer = nullptr;
25
26
typedef std::chrono::steady_clock Clock;
27
0 commit comments