From 381c25cc86b84f9f47848ebb933690169a2e4130 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 8 Apr 2024 19:14:43 -0700 Subject: [PATCH] Fix generation speed calculation. (#2932) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/2932 overriding_review_checks_triggers_an_audit_and_retroactive_review Oncall Short Name: executorch Differential Revision: D55904722 fbshipit-source-id: 6057bc75f812e5ae9dd057bbed7291a539d80ff6 (cherry picked from commit 8cabeac6c7322611e62ec40199a8e94d2f86f456) --- .../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 {