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

Function issueDeprecationWarning

python/src/utils.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25void issueDeprecationWarning(char const* useInstead)
26{
27 std::string msg{"Use " + std::string{useInstead} + " instead."};
28
29 py::gil_scoped_acquire acquire{};
30 PyErr_WarnEx(PyExc_DeprecationWarning, msg.c_str(), 1);
31}
32
33// Returns the size in bytes of the specified data type.
34size_t size(nvinfer1::DataType type)

Callers 3

operator()Method · 0.85
operator()Method · 0.85
doNothingDelFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected