Skip to content

Commit

Permalink
Merge pull request apache#1044 from thirdwing/master
Browse files Browse the repository at this point in the history
[R] close apache#837 and other misc update
  • Loading branch information
Qiang Kou (KK) committed Dec 23, 2015
2 parents 35c277c + c78e495 commit fd499d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R-package/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: mxnet
Type: Package
Title: MXNet
Version: 0.5
Date: 2015-10-02
Date: 2015-12-23
Author: Tianqi Chen, Qiang Kou, Tong He
Maintainer: Qiang Kou <qkou@umail.iu.edu>
Description: MXNet is a deep learning framework designed for both efficiency
Expand Down
6 changes: 6 additions & 0 deletions R-package/demo/00Index
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
basic_bench Basic benchmark
basic_executor Basic executor operations
basic_kvstore Basic kvstore operations
basic_model Basic model operations
basic_ndarray Basic ndarray operations
basic_random Basic random number generators
basic_symbol Basic symbol operations
1 change: 0 additions & 1 deletion R-package/src/io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ DataIterCreateFunction::DataIterCreateFunction
const char **arg_names;
const char **arg_type_infos;
const char **arg_descriptions;
const char *key_var_num_args;

MX_CALL(MXDataIterGetIterInfo(
handle_, &name, &description, &num_args,
Expand Down
4 changes: 3 additions & 1 deletion R-package/src/symbol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Symbol::RObjectType Symbol::GetInternals() const {

Symbol::RObjectType Symbol::GetOutput(mx_uint index) const {
SymbolHandle out;
MX_CALL(MXSymbolGetOutput(handle_, index, &out));
MX_CALL(MXSymbolGetOutput(handle_, index - 1, &out));
return Symbol::RObject(out);
}

Expand Down Expand Up @@ -316,6 +316,8 @@ void Symbol::InitRcppModule() {
"Get a symbol that contains all the internals")
.method("get.output", &Symbol::GetOutput,
"Get index-th output symbol of current one")
.method("[[", &Symbol::GetOutput,
"Get index-th output symbol of current one")
.method("infer.shape", &Symbol::InferShape,
"Inference the shape information given unknown ones");

Expand Down

0 comments on commit fd499d5

Please sign in to comment.