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 9e00a51 commit 02d0c7fCopy full SHA for 02d0c7f
docs/source/using-executorch-ios.md
@@ -772,7 +772,7 @@ do {
772
let outputs3 = try module.execute("another_method", [inputTensor1])
773
774
// Process outputs by converting the first output Value to a typed Tensor<Float>.
775
- if let outputTensor: Tensor<Float> = outputs1.first?.toTensor() {
+ if let outputTensor: Tensor<Float> = outputs1.first?.tensor() {
776
// Now you have a type-safe tensor and can access its data easily.
777
let logits = try outputTensor.scalars()
778
print("First 5 logits: \(logits.prefix(5))")
0 commit comments