All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ForwardingDescriptor Class Referenceabstract

#include <nnet-descriptor.h>

Inheritance diagram for ForwardingDescriptor:

Public Member Functions

virtual Cindex MapToInput (const Index &output) const =0
 
virtual int32 Dim (const Nnet &nnet) const =0
 
virtual ForwardingDescriptorCopy () const =0
 
virtual int32 Modulus () const
 This function is for use in things like clockwork RNNs, where shifting the time of the inputs and outputs of the network by some multiple integer n would leave things the same, but shifting by non-multiples would change the network structure. More...
 
virtual void WriteConfig (std::ostream &os, const std::vector< std::string > &node_names) const =0
 
virtual void GetNodeDependencies (std::vector< int32 > *node_indexes) const =0
 This function appends to "node_indexes" all the node indexes. More...
 
virtual ~ForwardingDescriptor ()
 
 ForwardingDescriptor ()
 

Private Member Functions

 KALDI_DISALLOW_COPY_AND_ASSIGN (ForwardingDescriptor)
 

Detailed Description

Definition at line 94 of file nnet-descriptor.h.

Constructor & Destructor Documentation

virtual ~ForwardingDescriptor ( )
inlinevirtual

Definition at line 122 of file nnet-descriptor.h.

122 { }

Definition at line 123 of file nnet-descriptor.h.

123 { }

Member Function Documentation

KALDI_DISALLOW_COPY_AND_ASSIGN ( ForwardingDescriptor  )
private
virtual int32 Modulus ( ) const
inlinevirtual

This function is for use in things like clockwork RNNs, where shifting the time of the inputs and outputs of the network by some multiple integer n would leave things the same, but shifting by non-multiples would change the network structure.

It returns the smallest modulus to which this descriptor is invariant; the lowest common multiple of all descriptors in the network gives you the modulus for the whole network.

Reimplemented in RoundingForwardingDescriptor, SwitchingForwardingDescriptor, and OffsetForwardingDescriptor.

Definition at line 111 of file nnet-descriptor.h.

Referenced by OffsetForwardingDescriptor::Modulus(), and SimpleSumDescriptor::Modulus().

111 { return 1; }

The documentation for this class was generated from the following file: