зеркало из https://github.com/mozilla/kaldi.git
trunk: minor fix, fixing const-ness on BackpropNeeds{Input,Output}()
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3337 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
13c2714900
Коммит
4cd8d635bd
|
@ -365,8 +365,8 @@ class NormalizeComponent: public NonlinearComponent {
|
|||
NormalizeComponent() { }
|
||||
virtual std::string Type() const { return "NormalizeComponent"; }
|
||||
virtual Component* Copy() const { return new NormalizeComponent(*this); }
|
||||
virtual bool BackpropNeedsInput() { return true; }
|
||||
virtual bool BackpropNeedsOutput() { return true; }
|
||||
virtual bool BackpropNeedsInput() const { return true; }
|
||||
virtual bool BackpropNeedsOutput() const { return true; }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
CuMatrix<BaseFloat> *out) const;
|
||||
|
@ -391,8 +391,8 @@ class SigmoidComponent: public NonlinearComponent {
|
|||
explicit SigmoidComponent(const SigmoidComponent &other): NonlinearComponent(other) { }
|
||||
SigmoidComponent() { }
|
||||
virtual std::string Type() const { return "SigmoidComponent"; }
|
||||
virtual bool BackpropNeedsInput() { return false; }
|
||||
virtual bool BackpropNeedsOutput() { return true; }
|
||||
virtual bool BackpropNeedsInput() const { return false; }
|
||||
virtual bool BackpropNeedsOutput() const { return true; }
|
||||
virtual Component* Copy() const { return new SigmoidComponent(*this); }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
|
@ -414,8 +414,8 @@ class TanhComponent: public NonlinearComponent {
|
|||
TanhComponent() { }
|
||||
virtual std::string Type() const { return "TanhComponent"; }
|
||||
virtual Component* Copy() const { return new TanhComponent(*this); }
|
||||
virtual bool BackpropNeedsInput() { return false; }
|
||||
virtual bool BackpropNeedsOutput() { return true; }
|
||||
virtual bool BackpropNeedsInput() const { return false; }
|
||||
virtual bool BackpropNeedsOutput() const { return true; }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
CuMatrix<BaseFloat> *out) const;
|
||||
|
@ -436,8 +436,8 @@ class RectifiedLinearComponent: public NonlinearComponent {
|
|||
RectifiedLinearComponent() { }
|
||||
virtual std::string Type() const { return "RectifiedLinearComponent"; }
|
||||
virtual Component* Copy() const { return new RectifiedLinearComponent(*this); }
|
||||
virtual bool BackpropNeedsInput() { return false; }
|
||||
virtual bool BackpropNeedsOutput() { return true; }
|
||||
virtual bool BackpropNeedsInput() const { return false; }
|
||||
virtual bool BackpropNeedsOutput() const { return true; }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
CuMatrix<BaseFloat> *out) const;
|
||||
|
@ -458,8 +458,8 @@ class SoftHingeComponent: public NonlinearComponent {
|
|||
SoftHingeComponent() { }
|
||||
virtual std::string Type() const { return "SoftHingeComponent"; }
|
||||
virtual Component* Copy() const { return new SoftHingeComponent(*this); }
|
||||
virtual bool BackpropNeedsInput() { return true; }
|
||||
virtual bool BackpropNeedsOutput() { return true; }
|
||||
virtual bool BackpropNeedsInput() const { return true; }
|
||||
virtual bool BackpropNeedsOutput() const { return true; }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
CuMatrix<BaseFloat> *out) const;
|
||||
|
@ -485,8 +485,8 @@ class ScaleComponent: public Component {
|
|||
ScaleComponent(): dim_(0), scale_(0.0) { }
|
||||
virtual std::string Type() const { return "ScaleComponent"; }
|
||||
virtual Component* Copy() const { return new ScaleComponent(*this); }
|
||||
virtual bool BackpropNeedsInput() { return false; }
|
||||
virtual bool BackpropNeedsOutput() { return false; }
|
||||
virtual bool BackpropNeedsInput() const { return false; }
|
||||
virtual bool BackpropNeedsOutput() const { return false; }
|
||||
virtual void Propagate(const CuMatrixBase<BaseFloat> &in,
|
||||
int32 num_chunks,
|
||||
CuMatrix<BaseFloat> *out) const;
|
||||
|
|
Загрузка…
Ссылка в новой задаче