Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

[R] Take care of the input type of mx.nd.array in the R's interface #227

@hetong007

Description

@hetong007

In the R's interface, I suggest to wrap up the as.array operation in mx.nd.array, so users can simply write

mat = mx.nd.array(1:10, mx.cpu(0))
mat = mx.nd.array(matrix(1:4,2,2), mx.cpu(0))

instead of

x = as.array(c(1,2,3))
mat = mx.nd.array(x, mx.cpu(0))

in the current demo like https://github.com/dmlc/mxnet/blob/master/R-package/demo/basic_ndarray.R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions