File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3- # Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+ # Copyright 2025-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44#
55# Redistribution and use in source and binary forms, with or without
66# modification, are permitted provided that the following conditions
@@ -100,6 +100,19 @@ def test_classificattion_unsupported_data_type(self):
100100 str (e .exception ),
101101 )
102102
103+ def test_classification_output_tensor_too_large (self ):
104+ max_elements = 1_000_000
105+ shape = (1 , max_elements + 1 )
106+ dtype = "FP32"
107+ model_name = "identity_fp32"
108+ input_data = np .ones (shape , dtype = np .float32 )
109+
110+ inputs , outputs = self ._prepare_io (input_data , dtype )
111+ with self .assertRaises (InferenceServerException ) as e :
112+ self .client .infer (model_name = model_name , inputs = inputs , outputs = outputs )
113+
114+ self .assertIn ("classification output tensor too large" , str (e .exception ))
115+
103116
104117if __name__ == "__main__" :
105118 unittest .main ()
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Copyright 2023-2025 , NVIDIA CORPORATION. All rights reserved.
2+ # Copyright 2023-2026 , NVIDIA CORPORATION. All rights reserved.
33#
44# Redistribution and use in source and binary forms, with or without
55# modification, are permitted provided that the following conditions
@@ -136,7 +136,7 @@ for client_type in http grpc; do
136136 echo -e " \n***\n*** Test Failed - class_count_${client_type} _test_client\n***"
137137 RET=1
138138 else
139- check_test_results $TEST_RESULT_FILE 2
139+ check_test_results $TEST_RESULT_FILE 3
140140 if [ $? -ne 0 ]; then
141141 cat $TEST_RESULT_FILE
142142 echo -e " \n***\n*** Test Result Verification Failed - class_count_${client_type} _test_client\n***"
You can’t perform that action at this time.
0 commit comments