| 23 | { |
| 24 | |
| 25 | void 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. |
| 34 | size_t size(nvinfer1::DataType type) |
no test coverage detected