Update src/mlpack/methods/ann/layer/concat_impl.hpp
Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
co-authored by
Ryan Curtin
parent
c7d94a6ff3
commit
1dab4e23a6
@@ -239,7 +239,7 @@ void ConcatType<MatType>::Backward(
|
||||
delta.reshape(delta.n_elem / gy.n_cols, gy.n_cols);
|
||||
|
||||
this->network[index]->Backward(
|
||||
index == 0 ? input : this->layerOutputs[index-1],
|
||||
input,
|
||||
this->layerOutputs[index],
|
||||
delta,
|
||||
g);
|
||||
|
||||
Reference in New Issue
Block a user