\brief Determine the required data type for a buffer from its tensor name. \param tensorName The name of an input or output tensor. \return The type of the data in the buffer, or DataType::kFLOAT if the provided name does not map to an input or output tensor. \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator.
| 1695 | //! \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator. |
| 1696 | //! |
| 1697 | DataType getTensorDataType(char const* tensorName) const noexcept |
| 1698 | { |
| 1699 | return mImpl->getTensorDataType(tensorName); |
| 1700 | } |
| 1701 | |
| 1702 | //! |
| 1703 | //! \brief Get the maximum batch size which can be used for inference. Should only be called if the engine is built |