File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ range from simple to complex (e.g., URLs?) and caching mechanisms of various kin
172
172
<h5 >Params</h5 >
173
173
<ul >
174
174
<li ><a name =" set_input.ctx " ><code >ctx</code ></a >: <a href =" #graph_execution_context " ><a href =" #graph_execution_context " ><code >graph-execution-context</code ></a ></a ></li >
175
- <li ><a name =" set_input.index " ><code >index </code ></a >: <code >u32 </code ></li >
175
+ <li ><a name =" set_input.name " ><code >name </code ></a >: <code >string </code ></li >
176
176
<li ><a name =" set_input.tensor " ><a href =" #tensor " ><code >tensor</code ></a ></a >: <a href =" #tensor " ><a href =" #tensor " ><code >tensor</code ></a ></a ></li >
177
177
</ul >
178
178
<h5 >Return values</h5 >
@@ -196,7 +196,7 @@ expectation could be removed as a part of https://github.com/WebAssembly/wasi-nn
196
196
<h5 >Params</h5 >
197
197
<ul >
198
198
<li ><a name =" get_output.ctx " ><code >ctx</code ></a >: <a href =" #graph_execution_context " ><a href =" #graph_execution_context " ><code >graph-execution-context</code ></a ></a ></li >
199
- <li ><a name =" get_output.index " ><code >index </code ></a >: <code >u32 </code ></li >
199
+ <li ><a name =" get_output.name " ><code >name </code ></a >: <code >string </code ></li >
200
200
</ul >
201
201
<h5 >Return values</h5 >
202
202
<ul >
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ interface inference {
118
118
init-execution-context : func (graph : graph ) -> result <graph-execution-context , error >;
119
119
120
120
/// Define the inputs to use for inference.
121
- set-input : func (ctx : graph-execution-context , index : u32 , tensor : tensor ) -> result <_ , error >;
121
+ set-input : func (ctx : graph-execution-context , name : string , tensor : tensor ) -> result <_ , error >;
122
122
123
123
/// Compute the inference on the given inputs.
124
124
///
@@ -127,7 +127,7 @@ interface inference {
127
127
compute : func (ctx : graph-execution-context ) -> result <_ , error >;
128
128
129
129
/// Extract the outputs after inference.
130
- get-output : func (ctx : graph-execution-context , index : u32 ) -> result <tensor-data , error >;
130
+ get-output : func (ctx : graph-execution-context , name : string ) -> result <tensor-data , error >;
131
131
}
132
132
133
133
/// TODO: create function-specific errors (https://github.com/WebAssembly/wasi-nn/issues/42)
You can’t perform that action at this time.
0 commit comments