Creates a tuple of `num_field` untyped scalars.
(num_fields, name_prefix='field')
| 942 | |
| 943 | |
| 944 | def RawTuple(num_fields, name_prefix='field'): |
| 945 | """ |
| 946 | Creates a tuple of `num_field` untyped scalars. |
| 947 | """ |
| 948 | assert isinstance(num_fields, int) |
| 949 | assert num_fields >= 0 |
| 950 | return NamedTuple(name_prefix, *([np.void] * num_fields)) |
| 951 | |
| 952 | |
| 953 | def from_dtype(dtype, _outer_shape=()): |
nothing calls this directly
no test coverage detected
searching dependent graphs…