#include <Batching.h>
Public Member Functions | |
BatchStrategy ()=default | |
const BatchRule & | getRule (size_t batchSize) const |
bool | hasRule (size_t batchSize) const |
void | setDefaultRule (size_t batchSize, const std::vector< size_t > &availableBatchSizes) |
void | setRule (const BatchRule &rule) |
~BatchStrategy ()=default | |
Private Attributes | |
std::map< size_t, BatchRule > | rules_ |
Definition at line 52 of file Batching.h.
|
explicitdefault |
|
default |
const BatchRule & tfaot::BatchStrategy::getRule | ( | size_t | batchSize | ) | const |
Definition at line 48 of file Batching.cc.
References HLT_FULL_cff::batchSize, Exception, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and rules_.
|
inline |
void tfaot::BatchStrategy::setDefaultRule | ( | size_t | batchSize, |
const std::vector< size_t > & | availableBatchSizes | ||
) |
Definition at line 64 of file Batching.cc.
References HLT_FULL_cff::batchSize, spr::find(), dqmiodumpmetadata::n, mergeAndRegister::rest, and setRule().
|
inline |
Definition at line 61 of file Batching.h.
References tfaot::BatchRule::getBatchSize(), and rules_.
Referenced by tfaot::Model< W >::setBatchRule(), and setDefaultRule().