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

Method configureWithFormat

plugin/clipPlugin/clipPlugin.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ClipPlugin::configureWithFormat(Dims const* inputs, int32_t nbInputs, Dims const* outputs, int32_t nbOutputs,
134 DataType type, PluginFormat format, int32_t) noexcept
135{
136 PLUGIN_ASSERT(nbOutputs == 1);
137 PLUGIN_API_CHECK_ENUM_RANGE(DataType, type);
138 PLUGIN_API_CHECK_ENUM_RANGE(PluginFormat, format);
139 mDataType = type;
140
141 size_t volume = 1;
142 for (int32_t i = 0; i < inputs->nbDims; i++)
143 {
144 volume *= inputs->d[i];
145 }
146 mInputVolume = volume;
147}
148
149bool ClipPlugin::supportsFormat(DataType type, PluginFormat format) const noexcept
150{

Callers 1

pyPlugin.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected