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

Method deserializeToDevice

plugin/gridAnchorPlugin/gridAnchorPlugin.cpp:277–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277Weights GridAnchorGenerator::deserializeToDevice(char const*& hostBuffer, size_t count) noexcept
278{
279 Weights w = copyToDevice(hostBuffer, count);
280 hostBuffer += count * sizeof(float);
281 return w;
282}
283bool GridAnchorGenerator::supportsFormat(DataType type, PluginFormat format) const noexcept
284{
285 return (type == DataType::kFLOAT && format == PluginFormat::kLINEAR);

Callers

nothing calls this directly

Calls 1

copyToDeviceFunction · 0.85

Tested by

no test coverage detected