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

Method Normalize

plugin/normalizePlugin/normalizePlugin.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36std::vector<PluginField> NormalizePluginCreator::mPluginAttributes;
37
38Normalize::Normalize(Weights const* weights, int32_t nbWeights, bool acrossSpatial, bool channelShared, float eps)
39 : acrossSpatial(acrossSpatial)
40 , channelShared(channelShared)
41 , eps(eps)
42{
43 mNbWeights = nbWeights;
44 PLUGIN_VALIDATE(nbWeights == 1);
45 PLUGIN_VALIDATE(weights[0].count >= 1);
46 mWeights = copyToDevice(weights[0].values, weights[0].count);
47 mScalarScale = static_cast<float const*>(weights[0].values)[0];
48}
49
50Normalize::Normalize(Weights const* weights, int32_t nbWeights, float scalarScale, bool acrossSpatial,
51 bool channelShared, float eps, int32_t C, int32_t H, int32_t W)

Callers 4

build_heatmapsFunction · 0.80
mainFunction · 0.80
__init__Method · 0.80
rn50_preprocessFunction · 0.80

Calls 1

copyToDeviceFunction · 0.85

Tested by

no test coverage detected