Nabu-asr
Public Member Functions | List of all members
nabu.neuralnetworks.models.ed_encoders.dnn.DNN Class Reference

a DNN encode More...

Inheritance diagram for nabu.neuralnetworks.models.ed_encoders.dnn.DNN:
nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder

Public Member Functions

def encode (self, inputs, input_seq_length, is_training)
 Create the variables and do the forward computation. More...
 
- Public Member Functions inherited from nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder
def __init__ (self, conf, constraint, name=None)
 EDEncoder constructor. More...
 
def __call__ (self, inputs, input_seq_length, is_training)
 Create the variables and do the forward computation. More...
 
def encode (self, inputs, input_seq_length, is_training)
 Create the variables and do the forward computation. More...
 
def variables (self)
 get a list of the models's variables
 

Additional Inherited Members

- Public Attributes inherited from nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder
 conf
 
 scope
 

Detailed Description

a DNN encode

Member Function Documentation

§ encode()

def nabu.neuralnetworks.models.ed_encoders.dnn.DNN.encode (   self,
  inputs,
  input_seq_length,
  is_training 
)

Create the variables and do the forward computation.

Parameters
inputsthe inputs to the neural network, this is a dictionary of [batch_size x time x ...] tensors
input_seq_lengthThe sequence lengths of the input utterances, this is a dictionary of [batch_size] vectors
is_trainingwhether or not the network is in training mode
Returns
  • the outputs of the encoder as a dictionary of [bath_size x time x ...] tensors
  • the sequence lengths of the outputs as a dictionary of [batch_size] tensors

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