@@ -3095,21 +3095,21 @@ ModelInstanceState::InitializeShapeInputBinding(
30953095 : context.max_dims_ [io_index].d [0 ];
30963096 context.max_shapes_ [io_index] = ShapeTensor ();
30973097 context.max_shapes_ [io_index].SetDataFromShapeValues (
3098- engine_->getProfileTensorValues (
3098+ engine_->getProfileTensorValuesV2 (
30993099 input_name.c_str (), profile_index,
31003100 nvinfer1::OptProfileSelector::kMAX ),
31013101 input_datatype, context.nb_shape_values_ );
31023102
31033103 context.min_shapes_ [io_index] = ShapeTensor ();
31043104 context.min_shapes_ [io_index].SetDataFromShapeValues (
3105- engine_->getProfileTensorValues (
3105+ engine_->getProfileTensorValuesV2 (
31063106 input_name.c_str (), profile_index,
31073107 nvinfer1::OptProfileSelector::kMIN ),
31083108 input_datatype, context.nb_shape_values_ );
31093109
31103110 context.opt_shapes_ [io_index] = ShapeTensor ();
31113111 context.opt_shapes_ [io_index].SetDataFromShapeValues (
3112- engine_->getProfileTensorValues (
3112+ engine_->getProfileTensorValuesV2 (
31133113 input_name.c_str (), profile_index,
31143114 nvinfer1::OptProfileSelector::kOPT ),
31153115 input_datatype, context.nb_shape_values_ );
0 commit comments