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

Method deserialize

plugin/resizeNearestPlugin/resizeNearestPlugin.cpp:173–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void ResizeNearest::deserialize(int8_t const* data, size_t length)
174{
175 auto const* d{data};
176 mScale = read<float>(d);
177 mInputDims = Dims3();
178 mInputDims.d[0] = read<int32_t>(d);
179 mInputDims.d[1] = read<int32_t>(d);
180 mInputDims.d[2] = read<int32_t>(d);
181 mOutputDims = Dims3();
182 mOutputDims.d[0] = read<int32_t>(d);
183 mOutputDims.d[1] = read<int32_t>(d);
184 mOutputDims.d[2] = read<int32_t>(d);
185 PLUGIN_VALIDATE(d == data + length);
186}
187
188char const* ResizeNearest::getPluginType() const noexcept
189{

Callers

nothing calls this directly

Calls 1

Dims3Class · 0.85

Tested by

no test coverage detected