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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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