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

Function read

plugin/common/plugin.h:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// Read values from buffer
93template <typename OutType, typename BufferType>
94OutType read(BufferType const*& buffer)
95{
96 static_assert(sizeof(BufferType) == 1, "BufferType must be a 1 byte type.");
97 OutType val{};
98 std::memcpy(&val, static_cast<void const*>(buffer), sizeof(OutType));
99 buffer += sizeof(OutType);
100 return val;
101}
102
103inline int32_t getTrtSMVersionDec(int32_t smVersion)
104{

Callers 3

half.hFile · 0.85
ieee_half.hFile · 0.85
load_wav_to_torchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected