| 275 | } |
| 276 | |
| 277 | Weights 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 | } |
| 283 | bool GridAnchorGenerator::supportsFormat(DataType type, PluginFormat format) const noexcept |
| 284 | { |
| 285 | return (type == DataType::kFLOAT && format == PluginFormat::kLINEAR); |
nothing calls this directly
no test coverage detected