Skip to content

Commit e862e25

Browse files
authored
Add IValue type list
1 parent d47c888 commit e862e25

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

RFC-0020-Lightweight-Dispatch.md

+52
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,55 @@ TEST(LiteInterpreterTest, UpsampleNearest2d) {
285285
ASSERT_TRUE(resd.equal(refd));
286286
}
287287
```
288+
## Appendix
289+
List of IValue types we need to support in unboxing:
290+
291+
'Device',
292+
'Device?',
293+
'Dimname',
294+
'Dimname[1]',
295+
'Dimname[]',
296+
'Dimname[]?',
297+
'Generator?',
298+
'Layout?',
299+
'MemoryFormat',
300+
'MemoryFormat?',
301+
'Scalar',
302+
'Scalar?',
303+
'ScalarType',
304+
'ScalarType?',
305+
'Scalar[]',
306+
'Storage',
307+
'Stream',
308+
'Tensor',
309+
'Tensor(a!)',
310+
'Tensor(a!)[]',
311+
'Tensor(a)',
312+
'Tensor(b!)',
313+
'Tensor(c!)',
314+
'Tensor(d!)',
315+
'Tensor?',
316+
'Tensor?[]',
317+
'Tensor[]',
318+
'bool',
319+
'bool?',
320+
'bool[2]',
321+
'bool[3]',
322+
'bool[4]',
323+
'float',
324+
'float?',
325+
'float[]?',
326+
'int',
327+
'int?',
328+
'int[1]',
329+
'int[1]?',
330+
'int[2]',
331+
'int[2]?',
332+
'int[3]',
333+
'int[4]',
334+
'int[5]',
335+
'int[6]',
336+
'int[]',
337+
'int[]?',
338+
'str',
339+
'str?'

0 commit comments

Comments
 (0)