This hashing object hashes just the structural aspects of the NnetExample without looking at the value of the features. More...
#include <nnet-example.h>
Public Member Functions | |
size_t | operator() (const NnetExample &eg) const noexcept |
size_t | operator() (const NnetExample *eg) const noexcept |
This hashing object hashes just the structural aspects of the NnetExample without looking at the value of the features.
It will be used in combining egs into batches of all similar structure. Note: the hash value is sensitive to the order in which the NnetIo elements (input and outputs) appear, even though the merging is capable of dealing with differently-ordered inputs and outputs (e.g. "input" appearing before vs. after "ivector" or "output"). We don't think anyone would ever have to deal with differently-ordered, but otherwise identical, egs in practice so we don't bother making the hashing function independent of this order.
Definition at line 145 of file nnet-example.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 148 of file nnet-example.h.