ComputationRenumberer::SubMatrixHasher Struct Reference

Public Member Functions

 SubMatrixHasher ()
 
size_t operator() (const NnetComputation::SubMatrixInfo &submat) const noexcept
 

Detailed Description

Definition at line 187 of file nnet-optimize-utils.cc.

Constructor & Destructor Documentation

◆ SubMatrixHasher()

SubMatrixHasher ( )
inline

Definition at line 188 of file nnet-optimize-utils.cc.

188 { }

Member Function Documentation

◆ operator()()

size_t operator() ( const NnetComputation::SubMatrixInfo submat) const
inlinenoexcept

Definition at line 189 of file nnet-optimize-utils.cc.

189  {
190  // these numbers are arbitrarily chosen primes.
191  return submat.matrix_index +
192  19553 * submat.row_offset +
193  29297 * submat.num_rows +
194  42209 * submat.col_offset +
195  56527 * submat.num_cols;
196  }

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