@@ -6,6 +6,7 @@ Interface CompiledModel
6
6
interface CompiledModel {
7
7
inputs: Output[];
8
8
outputs: Output[];
9
+ getProperty(propertyName): string | number | boolean;
9
10
createInferRequest(): InferRequest;
10
11
exportModelSync(): Buffer;
11
12
input(): Output;
@@ -14,13 +15,14 @@ Interface CompiledModel
14
15
output(): Output;
15
16
output(index): Output;
16
17
output(name): Output;
18
+ setProperty(properties: {[propertyName: string]: string | number | boolean}): void;
17
19
}
18
20
19
21
CompiledModel represents a model that is compiled for a specific device by applying
20
22
multiple optimization transformations, then mapping to compute kernels.
21
23
22
24
* **Defined in: **
23
- `addon.ts:272 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L272 >`__
25
+ `addon.ts:303 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L303 >`__
24
26
25
27
26
28
Properties
@@ -38,7 +40,7 @@ Properties
38
40
It gets all inputs of a compiled model.
39
41
40
42
- **Defined in: **
41
- `addon.ts:274 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L274 >`__
43
+ `addon.ts:305 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L305 >`__
42
44
43
45
44
46
.. rubric :: outputs
@@ -52,13 +54,37 @@ Properties
52
54
It gets all outputs of a compiled model.
53
55
54
56
- **Defined in: **
55
- `addon.ts:276 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L276 >`__
57
+ `addon.ts:307 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L307 >`__
56
58
57
59
58
60
Methods
59
61
#####################
60
62
61
63
64
+ .. rubric :: getProperty
65
+ :name: getProperty
66
+
67
+ *
68
+
69
+ .. code-block :: ts
70
+
71
+ getProperty(propertyName): string | number | boolean
72
+
73
+ It gets the property for the current compiled model.
74
+
75
+ * **Parameters: **
76
+
77
+ - propertyName: string
78
+
79
+ A string to get the property value.
80
+
81
+ * **Returns: ** string | number | boolean
82
+
83
+ * **Defined in: **
84
+ `addon.ts:313 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L313 >`__
85
+
86
+
87
+
62
88
.. rubric :: createInferRequest
63
89
:name: createInferRequest
64
90
@@ -73,7 +99,7 @@ Methods
73
99
* **Returns: ** :doc: `InferRequest <InferRequest >`
74
100
75
101
- **Defined in: **
76
- `addon.ts:281 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L281 >`__
102
+ `addon.ts:318 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L318 >`__
77
103
78
104
79
105
.. rubric :: exportModelSync
@@ -88,7 +114,7 @@ Methods
88
114
* **Returns: ** Buffer
89
115
90
116
- **Defined in: **
91
- `addon.ts:288 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L288 >`__
117
+ `addon.ts:325 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L325 >`__
92
118
93
119
94
120
.. rubric :: input
@@ -107,7 +133,7 @@ Methods
107
133
A compiled model input.
108
134
109
135
* **Defined in: **
110
- `addon.ts:312 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L312 >`__
136
+ `addon.ts:349 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L349 >`__
111
137
112
138
113
139
.. code-block :: ts
@@ -127,7 +153,7 @@ Methods
127
153
A compiled model input.
128
154
129
155
* **Defined in: **
130
- `addon.ts:318 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L318 >`__
156
+ `addon.ts:355 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L355 >`__
131
157
132
158
133
159
.. code-block :: ts
@@ -147,7 +173,7 @@ Methods
147
173
A compiled model input.
148
174
149
175
* **Defined in: **
150
- `addon.ts:324 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L324 >`__
176
+ `addon.ts:361 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L361 >`__
151
177
152
178
153
179
.. rubric :: output
@@ -165,7 +191,7 @@ Methods
165
191
A compiled model output.
166
192
167
193
* **Defined in: **
168
- `addon.ts:294 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L294 >`__
194
+ `addon.ts:331 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L331 >`__
169
195
170
196
171
197
.. code-block :: ts
@@ -189,7 +215,7 @@ Methods
189
215
A compiled model output.
190
216
191
217
* **Defined in: **
192
- `addon.ts:300 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L300 >`__
218
+ `addon.ts:337 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L337 >`__
193
219
194
220
195
221
.. code-block :: ts
@@ -213,5 +239,34 @@ Methods
213
239
A compiled model output.
214
240
215
241
* **Defined in: **
216
- `addon.ts:306 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L306 >`__
242
+ `addon.ts:343 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L343 >`__
243
+
244
+
245
+ .. rubric :: setProperty
246
+
247
+ *
248
+
249
+ .. code-block :: ts
250
+
251
+ setProperty(properties): void
252
+
253
+ It sets properties for the current compiled model. Properties can be retrieved via
254
+ :ref: `CompiledModel.getProperty <getProperty >`
255
+
256
+ * **Parameters: **
257
+
258
+ -
259
+
260
+ .. code-block :: ts
261
+
262
+ properties: {
263
+ [propertyName: string]: string | number | boolean;
264
+ }
265
+
266
+ An object with the key-value pairs (property name, property value).
267
+
268
+ * **Returns: ** void
269
+
270
+ * **Defined in: **
271
+ `addon.ts:368 <https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/lib/addon.ts#L368 >`__
217
272
0 commit comments