We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0278bd commit d93971aCopy full SHA for d93971a
HeterogeneousCore/SonicTriton/src/TritonClient.cc
@@ -263,8 +263,8 @@ unsigned TritonClient::batchSize() const { return batchMode_ == TritonBatchMode:
263
bool TritonClient::setBatchSize(unsigned bsize) {
264
if (batchMode_ == TritonBatchMode::Rectangular) {
265
if (bsize > maxOuterDim_) {
266
- edm::LogWarning(fullDebugName_) << "Requested batch size " << bsize << " exceeds server-specified max batch size "
267
- << maxOuterDim_ << ". Batch size will remain as " << outerDim_;
+ throw TritonException("LocalFailure")
+ << "Requested batch size " << bsize << " exceeds server-specified max batch size " << maxOuterDim_ << ".";
268
return false;
269
} else {
270
outerDim_ = bsize;
0 commit comments