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

Function engine_get_profile_shape

python/src/infer/pyCore.cpp:211–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209};
210
211std::vector<Dims> engine_get_profile_shape(ICudaEngine& self, int32_t profileIndex, int32_t bindingIndex)
212{
213 std::vector<Dims> shapes{};
214 shapes.emplace_back(self.getProfileDimensions(bindingIndex, profileIndex, OptProfileSelector::kMIN));
215 shapes.emplace_back(self.getProfileDimensions(bindingIndex, profileIndex, OptProfileSelector::kOPT));
216 shapes.emplace_back(self.getProfileDimensions(bindingIndex, profileIndex, OptProfileSelector::kMAX));
217 return shapes;
218};
219// Overload to allow using binding names instead of indices.
220std::vector<Dims> engine_get_profile_shape_str(ICudaEngine& self, int32_t profileIndex, std::string const& bindingName)
221{

Callers 1

Calls 1

getProfileDimensionsMethod · 0.80

Tested by

no test coverage detected