From b07394d86226f95283c55cc887cfd316e25df815 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 8 Apr 2024 19:11:53 -0700 Subject: [PATCH] Fix generation speed calculation. (#2932) Summary: . Differential Revision: D55904722 --- .../apple_ios/LLaMA/LLaMA/Application/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift index 5d7ddbc388f..e3db6125c49 100644 --- a/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift +++ b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift @@ -215,7 +215,7 @@ struct ContentView: View { tokens.append(token) if tokens.count > 2 { let text = tokens.joined() - let count = text.count + let count = tokens.count tokens = [] DispatchQueue.main.async { withAnimation {