MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getErrorCode

Function getErrorCode

python/src/infer/pyCore.cpp:692–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690 {
691 public:
692 virtual ErrorCode getErrorCode(int32_t errorIdx) const noexcept override
693 {
694 try
695 {
696 PYBIND11_OVERLOAD_PURE_NAME(ErrorCode, IErrorRecorder, "get_error_code", getErrorCode, errorIdx);
697 }
698 catch (std::exception const& e)
699 {
700 std::cerr << "[ERROR] Exception caught in get_error_code(): " << e.what() << std::endl;
701 }
702 catch (...)
703 {
704 std::cerr << "[ERROR] Exception caught in get_error_code()" << std::endl;
705 }
706 return {};
707 }
708
709 virtual ErrorDesc getErrorDesc(int32_t errorIdx) const noexcept override
710 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected