1 #ifndef PHYSICSTOOLS_TENSORFLOWAOT_BATCHING_H 2 #define PHYSICSTOOLS_TENSORFLOWAOT_BATCHING_H 22 explicit BatchRule(
size_t batchSize,
const std::vector<size_t>& sizes,
size_t lastPadding = 0);
88 #endif // PHYSICSTOOLS_TENSORFLOWAOT_BATCHING_H
const BatchRule & getRule(size_t batchSize) const
void setRule(const BatchRule &rule)
BatchRule(size_t batchSize, const std::vector< size_t > &sizes, size_t lastPadding=0)
size_t getLastPadding() const
void setRule(const std::string &ruleString)
size_t getBatchSize() const
bool hasRule(size_t batchSize) const
std::ostream & operator<<(std::ostream &out, const BatchRule &rule)
const std::vector< size_t > & getSizes() const
size_t getSize(size_t i) const
std::vector< size_t > sizes_
std::map< size_t, BatchRule > rules_
void setDefaultRule(size_t batchSize, const std::vector< size_t > &availableBatchSizes)