mx.nd.array
¶
Description¶
Create a new mx.ndarray
that copies the content from src on ctx.
Example:
mat = mx.nd.array(x)
mat = 1 - mat + (2 * mat)/(mat + 0.5)
as.array(mat)
Usage¶
mx.nd.array(src.array, ctx = NULL)
Arguments¶
Argument |
Description |
---|---|
|
Source array data of class |
|
optional The context device of the array. mx.ctx.default() will be used in default. |