Skip to content

Commit 76ef30b

Browse files
pytorchbotshoumikhinlarryliu0820
authored
Update using-executorch-ios.md (#13029)
Co-authored-by: Anthony Shoumikhin <[email protected]> Co-authored-by: Mengwei Liu <[email protected]>
1 parent 0d337e2 commit 76ef30b

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
@@ -771,7 +771,7 @@ do {
771771
let outputs3 = try module.execute("another_method", [inputTensor1])
772772
773773
// Process outputs by converting the first output Value to a typed Tensor<Float>.
774-
if let outputTensor: Tensor<Float> = outputs1.first?.toTensor() {
774+
if let outputTensor: Tensor<Float> = outputs1.first?.tensor() {
775775
// Now you have a type-safe tensor and can access its data easily.
776776
let logits = try outputTensor.scalars()
777777
print("First 5 logits: \(logits.prefix(5))")

0 commit comments

Comments
 (0)