| 48 | REGISTER_TENSORRT_PLUGIN(SkipLayerNormVarSeqlenPluginCreator); |
| 49 | |
| 50 | static inline DataType getParamWordType(DataType cfgType) noexcept |
| 51 | { |
| 52 | if (cfgType == DataType::kINT8) |
| 53 | { |
| 54 | return DataType::kHALF; |
| 55 | } |
| 56 | |
| 57 | return cfgType; |
| 58 | } |
| 59 | |
| 60 | SkipLayerNormPluginDynamic::SkipLayerNormPluginDynamic(const std::string name, const DataType type, int32_t const ld, |
| 61 | Weights const& beta, Weights const& gamma, Weights const& bias) |