thirdwing commented on a change in pull request #7476: R-package RNN refactor URL: https://github.com/apache/incubator-mxnet/pull/7476#discussion_r133258978
########## File path: R-package/R/rnn.R ########## @@ -1,342 +1,101 @@ -# rnn cell symbol -rnn <- function(num.hidden, indata, prev.state, param, seqidx, - layeridx, dropout=0., batch.norm=FALSE) { - if (dropout > 0. ) - indata <- mx.symbol.Dropout(data=indata, p=dropout) - i2h <- mx.symbol.FullyConnected(data=indata, - weight=param$i2h.weight, - bias=param$i2h.bias, - num.hidden=num.hidden, - name=paste0("t", seqidx, ".l", layeridx, ".i2h")) - h2h <- mx.symbol.FullyConnected(data=prev.state$h, - weight=param$h2h.weight, - bias=param$h2h.bias, - num.hidden=num.hidden, - name=paste0("t", seqidx, ".l", layeridx, ".h2h")) - hidden <- i2h + h2h +library(mxnet) Review comment: Please remove "library(mxnet)". ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services