Skip to content

Commit d993faf

Browse files
authored
Fix get-output return type (#29)
In porting the WITX definition to WIT, I inadvertently changed the return type of `get-output`. @yamt identified this issue in #24--thank you! This change fixes the return type to the original type, `tensor-data`. (In the future, it may be interesting to return more information about the tensor, but that can be a separate issue).
1 parent 8d96fe8 commit d993faf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wasi-nn.abi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,5 @@ Size: 1, Alignment: 1
175175
- <a href="#get_output.index" name="get_output.index"></a> `index`: `u32`
176176
##### Result
177177

178-
- expected<[`tensor`](#tensor), [`error`](#error)>
178+
- expected<[`tensor-data`](#tensor_data), [`error`](#error)>
179179

wasi-nn.wit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ set-input: func(ctx: graph-execution-context, index: u32, tensor: tensor) -> exp
114114
compute: func(ctx: graph-execution-context) -> expected<unit, error>
115115
116116
// Extract the outputs after inference.
117-
get-output: func(ctx: graph-execution-context, index: u32) -> expected<tensor, error>
117+
get-output: func(ctx: graph-execution-context, index: u32) -> expected<tensor-data, error>
118118
```
119119

120120
### Errors

0 commit comments

Comments
 (0)