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

Function getOverride

python/include/utils.h:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64// T* must NOT be a trampoline class!
65template <typename T>
66py::function getOverride(const T* self, std::string const& overloadName, bool showWarning = true)
67{
68 py::function overload = py::get_override(self, overloadName.c_str());
69 if (!overload && showWarning)
70 {
71 std::cerr << "Method: " << overloadName
72 << " was not overriden. Please provide an implementation for this method.";
73 }
74 return overload;
75}
76
77// Deprecation helpers
78void issueDeprecationWarning(const char* useInstead);

Callers 9

selectAlgorithmsMethod · 0.85
reportAlgorithmsMethod · 0.85
getBatchFunction · 0.85
readCalibrationCacheFunction · 0.85
writeCalibrationCacheFunction · 0.85
allocHelperMethod · 0.85
freeMethod · 0.85
deallocateMethod · 0.85
reallocateOutputMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected