@@ -496,7 +496,7 @@ class NormalizeComponent: public NonlinearComponent {
496496 virtual std::string Type () const { return " NormalizeComponent" ; }
497497 virtual Component* Copy () const { return new NormalizeComponent (*this ); }
498498 virtual bool BackpropNeedsInput () const { return true ; }
499- virtual bool BackpropNeedsOutput () const { return true ; }
499+ virtual bool BackpropNeedsOutput () const { return false ; }
500500 using Component::Propagate; // to avoid name hiding
501501 virtual void Propagate (const ChunkInfo &in_info,
502502 const ChunkInfo &out_info,
@@ -747,7 +747,7 @@ class FixedAffineComponent;
747747
748748// Affine means a linear function plus an offset.
749749// Note: although this class can be instantiated, it also
750- // function as a base-class for more specialized versions of
750+ // functions as a base-class for more specialized versions of
751751// AffineComponent.
752752class AffineComponent : public UpdatableComponent {
753753 friend class SoftmaxComponent ; // Friend declaration relates to mixing up.
@@ -902,13 +902,6 @@ class AffineComponentPreconditioned: public AffineComponent {
902902// / AffineComponentPreconditionedOnline is, like AffineComponentPreconditioned,
903903// / a version of AffineComponent that has a non-(multiple of unit) learning-rate
904904// / matrix. See nnet-precondition-online.h for a description of the technique.
905- // / This method maintains an orthogonal matrix N with a small number of rows,
906- // / actually two (for input and output dims) which gets modified each time;
907- // / we maintain a mutex for access to this (we just use it to copy it when
908- // / we need it and write to it when we change it). For multi-threaded use,
909- // / the parallelization method is to lock a mutex whenever we want to
910- // / read N or change it, but just quickly make a copy and release the mutex;
911- // / this is to ensure operations on N are atomic.
912905class AffineComponentPreconditionedOnline : public AffineComponent {
913906 public:
914907 virtual std::string Type () const {
0 commit comments