Skip to content

Commit 7c7bb66

Browse files
authored
Clean up *.witx (#46)
This removes an unused type (`status`) as well as some documentation to avoid duplication with the `*.wit` version of the same API (I'll try to keep the documentation up to date thre.
1 parent 346bf5d commit 7c7bb66

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

wasi-nn.witx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
;; version for the official specification and documentation.
33

44
(typename $buffer_size u32)
5-
(typename $status u32)
6-
75
(typename $nn_errno
86
(enum (@witx tag u16)
97
$success
@@ -64,17 +62,10 @@
6462
(param $target $execution_target)
6563
(result $error (expected $graph (error $nn_errno)))
6664
)
67-
;;; Load an opaque sequence of bytes to use for inference.
68-
;;;
69-
;;; This allows runtime implementations to support multiple graph encoding formats. For unsupported graph encodings,
70-
;;; return `errno::inval`.
7165
(@interface func (export "load_by_name")
72-
;;; The name of the model to load from the model registry
7366
(param $model_name string)
74-
7567
(result $error (expected $graph (error $nn_errno)))
7668
)
77-
7869
(@interface func (export "init_execution_context")
7970
(param $graph $graph)
8071
(result $error (expected $graph_execution_context (error $nn_errno)))
@@ -97,4 +88,3 @@
9788
(result $error (expected (error $nn_errno)))
9889
)
9990
)
100-

0 commit comments

Comments
 (0)