-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Overload more operators in R for ndarray #226
Conversation
R-package/R/ndarray.R
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be a bit consistent with style, space after comma
|
cc @thirdwing |
Overload more operators in R for ndarray
|
Both method is OK. As I remembr, |
|
Rcpp_MXNDArray is S4 object |
|
That is why I said both are OK. We can follow this method. PS: You won't see warnings below using |
|
I thought the warning will not happen if the setmethods are in https://github.com/dmlc/mxnet/blob/master/R-package/R/ndarray.R#L4 ? It did not happen on my side |
|
Because init.nd.array is called in onLoad after the library loading |
|
Defining a I removed it and saw warnings. |
|
I see, this was really due to our tricky requirement of handling the loading orders.. I thought we can go for the S4 way as it is consider more advanced? We can think of a more formal way later. But I am afraid we do need a init function solution, due to library loading order problem |
…e#226) * Fix warnings, build adjustments in CMake * fix cuda variable-declaration order problems * Remove gpu flavors below 30, no longer compatible * fix cuda variable-declaration order problems * Add nvcc --run cuda library path flag for when detecting gpu flavor * Allow CUDA_LIBRARY_PATH to not be defined * Minor visibility adjustments * Remove more warnings * use static_cast instead of () * Fix warnings * Fix link error, undefined kSize * Size() for kPlain packet * fix: Ignored test directory * Fix lint, re-apply kSize fix
Check if key stride exists in the node info when producing graphviz output
No description provided.