Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree-LSTM implementation for ChainerX #7720

Merged
merged 12 commits into from
Aug 26, 2019
Prev Previous commit
Next Next commit
cosmetic changes
  • Loading branch information
dido1998 committed Aug 16, 2019
commit 212cbf55939085177047f794fb4f852864df9cf1
4 changes: 2 additions & 2 deletions chainerx_cc/chainerx/python/routines.cc
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 702,8 @@ void InitChainerxActivation(pybind11::module& m) {
m.def("tree_lstm", [](py::args args) {
std::vector<ArrayBodyPtr> arrays = py::cast<std::vector<ArrayBodyPtr>>(args);
std::vector<Array> input;
for (uint i = 0; i < arrays.size(); i ) {
input.push_back(Array{arrays[i]});
for (size_t i = 0; i < arrays.size(); i ) {
input.emplace_back(Array{arrays[i]});
}
return ToTuple(TreeLstm(input));
});
Expand Down