Update src/mlpack/methods/ann/layer/layer_norm.hpp
Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
co-authored by
Ryan Curtin
parent
103db420b9
commit
99348fcea7
@@ -133,7 +133,8 @@ class LayerNormType : public Layer<MatType>
|
||||
// as the input.
|
||||
this->outputDimensions = this->inputDimensions;
|
||||
size = this->inputDimensions[0];
|
||||
for (size_t i=1; i<this->inputDimensions.size(); i++) size *= this->inputDimensions[i];
|
||||
for (size_t i = 1; i < this->inputDimensions.size(); i++)
|
||||
size *= this->inputDimensions[i];
|
||||
}
|
||||
|
||||
void SetWeights(typename MatType::elem_type* /* weightsPtr */) override;
|
||||
|
||||
Reference in New Issue
Block a user