Skip to content

Commit 6f78366

Browse files
ShunkangShunkang
authored andcommitted
Fix nanobind error
Signed-off-by: Shunkang <[email protected]>
1 parent fd0e36e commit 6f78366

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/tensorrt_llm/nanobind/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set(SRCS
99
batch_manager/cacheTransceiver.cpp
1010
batch_manager/kvCacheManager.cpp
1111
batch_manager/llmRequest.cpp
12+
common/tllmExceptions.cpp
1213
executor/bindings.cpp
1314
executor/executor.cpp
1415
executor/executorConfig.cpp

cpp/tensorrt_llm/nanobind/common/tllmExceptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ void initExceptionsBindings(nb::module_& m)
3636
static nb::object request_specific_exc = nb::exception<tc::RequestSpecificException>(m, "RequestSpecificException");
3737

3838
// Add attributes to the Python exception class
39-
request_specific_exc.attr("request_id") = nb::none;
40-
request_specific_exc.attr("error_code") = nb::none;
39+
request_specific_exc.attr("request_id") = nb::none();
40+
request_specific_exc.attr("error_code") = nb::none();
4141

4242
// Register exception translator to convert C++ exceptions to Python
4343
nb::register_exception_translator(

cpp/tensorrt_llm/nanobind/common/tllmExceptions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#pragma once
1818
#include <nanobind/nanobind.h>
19-
2019
namespace nb = nanobind;
2120

2221
namespace tensorrt_llm::nanobind::common

0 commit comments

Comments
 (0)