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

Function getParamWordType

plugin/skipLayerNormPlugin/skipLayerNormPlugin.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

configurePluginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected