NnetInferenceTask Struct Reference

class NnetInferenceTask represents a chunk of an utterance that is requested to be computed. More...

#include <nnet-batch-compute.h>

Collaboration diagram for NnetInferenceTask:

Public Member Functions

 NnetInferenceTask (const NnetInferenceTask &other)
 
 NnetInferenceTask ()
 

Public Attributes

CuMatrix< BaseFloatinput
 
int32 first_input_t
 
int32 output_t_stride
 
int32 num_output_frames
 
int32 num_initial_unused_output_frames
 
int32 num_used_output_frames
 
int32 first_used_output_frame_index
 
bool is_edge
 
bool is_irregular
 
CuVector< BaseFloativector
 
double priority
 
Semaphore semaphore
 
bool output_to_cpu
 
Matrix< BaseFloatoutput_cpu
 
CuMatrix< BaseFloatoutput
 

Detailed Description

class NnetInferenceTask represents a chunk of an utterance that is requested to be computed.

This will be given to NnetBatchComputer, which will aggregate the tasks and complete them.

Definition at line 50 of file nnet-batch-compute.h.

Constructor & Destructor Documentation

◆ NnetInferenceTask() [1/2]

NnetInferenceTask ( const NnetInferenceTask other)
inline

Definition at line 53 of file nnet-batch-compute.h.

References KALDI_ERR.

53  {
54  KALDI_ERR << "NnetInferenceTask was not designed to be copied.";
55  }
#define KALDI_ERR
Definition: kaldi-error.h:147

◆ NnetInferenceTask() [2/2]

NnetInferenceTask ( )
inline

Definition at line 56 of file nnet-batch-compute.h.

56 { }

Member Data Documentation

◆ first_input_t

◆ first_used_output_frame_index

◆ input

◆ is_edge

◆ is_irregular

◆ ivector

◆ num_initial_unused_output_frames

◆ num_output_frames

◆ num_used_output_frames

◆ output

◆ output_cpu

◆ output_t_stride

int32 output_t_stride

Definition at line 74 of file nnet-batch-compute.h.

Referenced by NnetBatchComputer::GetComputationRequest().

◆ output_to_cpu

◆ priority

double priority

◆ semaphore

Semaphore semaphore

Definition at line 125 of file nnet-batch-compute.h.

Referenced by NnetBatchDecoder::Decode().


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