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

Function get_tensor_profile_shape

python/src/infer/pyCore.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223};
224
225std::vector<Dims> get_tensor_profile_shape(ICudaEngine& self, std::string const& tensorName, int32_t profileIndex)
226{
227 std::vector<Dims> shapes{};
228 shapes.emplace_back(self.getProfileShape(tensorName.c_str(), profileIndex, OptProfileSelector::kMIN));
229 shapes.emplace_back(self.getProfileShape(tensorName.c_str(), profileIndex, OptProfileSelector::kOPT));
230 shapes.emplace_back(self.getProfileShape(tensorName.c_str(), profileIndex, OptProfileSelector::kMAX));
231 return shapes;
232};
233
234std::vector<std::vector<int32_t>> engine_get_profile_shape_input(
235 ICudaEngine& self, int32_t profileIndex, int32_t bindingIndex)

Callers

nothing calls this directly

Calls 2

getProfileShapeMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected