| 367 | } |
| 368 | |
| 369 | FCPluginDynamic::FCPluginDynamic(std::string const name, DataType const type, int32_t const outDim, Weights const& W) |
| 370 | : mLayerName(name) |
| 371 | , mType(type) |
| 372 | , mOutDim(outDim) |
| 373 | , mNumParams(W.count) |
| 374 | , mNmax(0) |
| 375 | , mK(0) |
| 376 | , mWdev(nullptr) |
| 377 | { |
| 378 | memset(mAlgo.data, 0, sizeof(mAlgo.data)); |
| 379 | |
| 380 | mW.convertAndCopy(W, mType); |
| 381 | copyToDevice(mW, getWeightsSize(mW, mType), mWdev); |
| 382 | } |
| 383 | |
| 384 | FCPluginDynamic::FCPluginDynamic(std::string const name, void const* data, size_t length) |
| 385 | : mLayerName(name) |
nothing calls this directly
no test coverage detected