ComputeNormalizersClass Class Reference
Inheritance diagram for ComputeNormalizersClass:
Collaboration diagram for ComputeNormalizersClass:

Public Member Functions

 ComputeNormalizersClass (AmSgmm2 *am_sgmm, int32 *entropy_count_ptr, double *entropy_sum_ptr)
 
 ComputeNormalizersClass (const ComputeNormalizersClass &other)
 
 ~ComputeNormalizersClass ()
 
void operator() ()
 
- Public Member Functions inherited from MultiThreadable
virtual ~MultiThreadable ()
 

Private Member Functions

 ComputeNormalizersClass ()
 

Private Attributes

AmSgmm2am_sgmm_
 
int32entropy_count_ptr_
 
double * entropy_sum_ptr_
 
int32 entropy_count_
 
double entropy_sum_
 

Additional Inherited Members

- Public Attributes inherited from MultiThreadable
int32 thread_id_
 
int32 num_threads_
 

Detailed Description

Definition at line 820 of file am-sgmm2.cc.

Constructor & Destructor Documentation

◆ ComputeNormalizersClass() [1/3]

ComputeNormalizersClass ( AmSgmm2 am_sgmm,
int32 entropy_count_ptr,
double *  entropy_sum_ptr 
)
inline

Definition at line 822 of file am-sgmm2.cc.

824  :
825  am_sgmm_(am_sgmm), entropy_count_ptr_(entropy_count_ptr),
826  entropy_sum_ptr_(entropy_sum_ptr), entropy_count_(0),
827  entropy_sum_(0.0) { }

◆ ComputeNormalizersClass() [2/3]

Definition at line 829 of file am-sgmm2.cc.

829  :
830  MultiThreadable(other),
831  am_sgmm_(other.am_sgmm_), entropy_count_ptr_(other.entropy_count_ptr_),
832  entropy_sum_ptr_(other.entropy_sum_ptr_), entropy_count_(0),
833  entropy_sum_(0.0) { }

◆ ~ComputeNormalizersClass()

◆ ComputeNormalizersClass() [3/3]

ComputeNormalizersClass ( )
inlineprivate

Definition at line 848 of file am-sgmm2.cc.

848 { } // Disallow empty constructor.

Member Function Documentation

◆ operator()()

void operator() ( )
inlinevirtual

Implements MultiThreadable.

Definition at line 840 of file am-sgmm2.cc.

840  {
841  // Note: give them local copy of the sums we're computing,
842  // which will be propagated to original pointer in the destructor.
845  &entropy_sum_);
846  }
void ComputeNormalizersInternal(int32 num_threads, int32 thread, int32 *entropy_count, double *entropy_sum)
Compute a subset of normalizers; used in multi-threaded implementation.
Definition: am-sgmm2.cc:873

Member Data Documentation

◆ am_sgmm_

AmSgmm2* am_sgmm_
private

Definition at line 849 of file am-sgmm2.cc.

◆ entropy_count_

int32 entropy_count_
private

Definition at line 852 of file am-sgmm2.cc.

◆ entropy_count_ptr_

int32* entropy_count_ptr_
private

Definition at line 850 of file am-sgmm2.cc.

◆ entropy_sum_

double entropy_sum_
private

Definition at line 853 of file am-sgmm2.cc.

◆ entropy_sum_ptr_

double* entropy_sum_ptr_
private

Definition at line 851 of file am-sgmm2.cc.


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