CachingOptimizingCompilerOptions Struct Reference

#include <nnet-optimize.h>

Collaboration diagram for CachingOptimizingCompilerOptions:

Public Member Functions

 CachingOptimizingCompilerOptions ()
 
void Register (OptionsItf *opts)
 

Public Attributes

bool use_shortcut
 
int32 cache_capacity
 

Detailed Description

Definition at line 192 of file nnet-optimize.h.

Constructor & Destructor Documentation

◆ CachingOptimizingCompilerOptions()

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 200 of file nnet-optimize.h.

References OptionsItf::Register().

Referenced by main(), BatchedXvectorComputerOptions::Register(), NnetTrainerOptions::Register(), and NnetComputeProbOptions::Register().

200  {
201  opts->Register("use-shortcut", &use_shortcut,
202  "If true, use the 'shortcut' in compilation whereby "
203  "computation requests with regular structure are identified "
204  "as such, a computation with a smaller number of distinct "
205  "values of 'n' is compiled (e.g. 2), and the compiled "
206  "computation is expanded to match the size of the real "
207  "computation request.");
208  opts->Register("cache-capacity", &cache_capacity,
209  "Determines how many computations the computation-cache will "
210  "store (most-recently-used).");
211  }

Member Data Documentation

◆ cache_capacity

int32 cache_capacity

◆ use_shortcut


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