Skip to content

Commit f9bb362

Browse files
Removes outdated alignment warning
Removes an old warning about incorrect alignment of inputs to the TensorRT engine.
1 parent 3c4d177 commit f9bb362

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mlir-tensorrt/executor/lib/Runtime/Backend/Lua/Modules/TensorRT/TensorRTModule.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,6 @@ static Status setTensorAddressesOrReport(
477477
ADD_TENSORRT_MODULE_RANGE("set_tensor_addresses");
478478
unsigned idx = 0;
479479
for (auto &[name, ptr, dims] : buffers) {
480-
constexpr intptr_t kMinAlignmentBytes = 256;
481-
if (ptr % kMinAlignmentBytes != 0)
482-
MTRT_WARNV("TensorRT input {0} (ptr = {1:X}) does not meet minimum "
483-
"alignment of {2} bytes",
484-
name, ptr, kMinAlignmentBytes);
485-
486480
bool result =
487481
context->setTensorAddress(name.c_str(), reinterpret_cast<void *>(ptr));
488482

0 commit comments

Comments
 (0)