Skip to content

Commit 02d0c7f

Browse files
authored
Update using-executorch-ios.md (#13024)
1 parent 9e00a51 commit 02d0c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/using-executorch-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ do {
772772
let outputs3 = try module.execute("another_method", [inputTensor1])
773773
774774
// Process outputs by converting the first output Value to a typed Tensor<Float>.
775-
if let outputTensor: Tensor<Float> = outputs1.first?.toTensor() {
775+
if let outputTensor: Tensor<Float> = outputs1.first?.tensor() {
776776
// Now you have a type-safe tensor and can access its data easily.
777777
let logits = try outputTensor.scalars()
778778
print("First 5 logits: \(logits.prefix(5))")

0 commit comments

Comments
 (0)