chainerx.fromfunction¶
-
chainerx.fromfunction(function, shape, **kwargs)¶ Constructs an array by executing a function over each coordinate.
This is currently equivalent to
numpy.fromfunction()wrapped bychainerx.array(), given the device argument.Note
Keywords other than
dtypeanddeviceare passed to`function`.See also