For IPluginV2Ext - makes copy of a vector as a bool[].
| 85 | |
| 86 | // For IPluginV2Ext - makes copy of a vector<bool> as a bool[]. |
| 87 | static std::unique_ptr<bool[]> makeBoolArray(std::vector<bool> const& v) |
| 88 | { |
| 89 | int32_t const n{static_cast<int32_t>(v.size())}; |
| 90 | std::unique_ptr<bool[]> result(n > 0 ? new bool[n] : nullptr); |
| 91 | std::copy_n(v.begin(), n, result.get()); |
| 92 | return std::move(result); |
| 93 | } |
| 94 | |
| 95 | static const auto configure_plugin |
| 96 | = [](IPluginV2Ext& self, std::vector<Dims> const& inputShapes, std::vector<Dims> const& outputShapes, |
no test coverage detected