NnetIoStructureCompare Struct Reference

This comparison object compares just the structural aspects of the NnetIo object (name, indexes, feature dimension) without looking at the value of features. More...

#include <nnet-example.h>

Public Member Functions

bool operator() (const NnetIo &a, const NnetIo &b) const
 

Detailed Description

This comparison object compares just the structural aspects of the NnetIo object (name, indexes, feature dimension) without looking at the value of features.

It will be used in combining egs into batches of all similar structure.

Definition at line 101 of file nnet-example.h.

Member Function Documentation

◆ operator()()

bool operator() ( const NnetIo a,
const NnetIo b 
) const

Definition at line 153 of file nnet-example.cc.

References NnetIo::features, NnetIo::indexes, NnetIo::name, GeneralMatrix::NumCols(), and GeneralMatrix::NumRows().

154  {
155  return a.name == b.name &&
156  a.features.NumRows() == b.features.NumRows() &&
157  a.features.NumCols() == b.features.NumCols() &&
158  a.indexes == b.indexes;
159 }

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