chainerx.fromiter

chainerx.fromiter(iterable, dtype, count=- 1, device=None)

Constructs a new 1-D array from an iterable object.

This is currently equivalent to numpy.fromiter() wrapped by chainerx.array(), given the device argument.

See also

numpy.fromiter()