From 2091332c6df93214ae7e6fa2e1c331b99db214bd Mon Sep 17 00:00:00 2001 From: krishung5 Date: Mon, 24 Mar 2025 01:30:18 -0700 Subject: [PATCH 1/4] Fix syntax --- Dockerfile.QA | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.QA b/Dockerfile.QA index 4ac28539aa..24ad77b034 100644 --- a/Dockerfile.QA +++ b/Dockerfile.QA @@ -75,11 +75,11 @@ RUN apt update -q=2 \ # Add inception_graphdef model to example repo # FIXME: This should be changed to using the fetch_models.sh script -# in order to ensure the public facing docs are up-to-date. +# in order to ensure the public facing docs are up-to-date. WORKDIR /workspace/docs/examples/model_repository RUN mkdir -p model_repository/inception_onnx/1 && \ wget -O /tmp/inception_v3_2016_08_28_frozen.pb.tar.gz \ - https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz + https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz && \ (cd /tmp && tar xzf inception_v3_2016_08_28_frozen.pb.tar.gz) && \ python3 -m venv tf2onnx && \ source ./tf2onnx/bin/activate && \ @@ -116,7 +116,7 @@ RUN mkdir -p qa/common && \ cp -r docs/examples/model_repository/simple_identity qa/L0_grpc/models && \ cp -r docs/examples/model_repository/simple_sequence qa/L0_grpc/models && \ cp -r docs/examples/model_repository/simple_string qa/L0_grpc/models && \ - cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && + cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && \ mkdir qa/L0_grpc_state_cleanup/models && \ cp -r /workspace/src/test/models/repeat_int32 qa/L0_grpc_state_cleanup/models/ && \ mkdir qa/L0_http/models && \ @@ -125,7 +125,7 @@ RUN mkdir -p qa/common && \ cp -r docs/examples/model_repository/simple_identity qa/L0_http/models && \ cp -r docs/examples/model_repository/simple_sequence qa/L0_http/models && \ cp -r docs/examples/model_repository/simple_string qa/L0_http/models && \ - cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && + cp -r docs/examples/model_repository/inception_onnx qa/L0_grpc/models && \ mkdir qa/L0_https/models && \ cp -r docs/examples/model_repository/simple qa/L0_https/models/. && \ mkdir qa/L0_secure_grpc/models && \ From a37ee07e2afff149548720be96837aad1609074f Mon Sep 17 00:00:00 2001 From: krishung5 Date: Mon, 24 Mar 2025 06:28:33 -0700 Subject: [PATCH 2/4] Install python3.12-venv --- Dockerfile.QA | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.QA b/Dockerfile.QA index 24ad77b034..2d7dcafecb 100644 --- a/Dockerfile.QA +++ b/Dockerfile.QA @@ -62,6 +62,7 @@ RUN apt-get update && \ python3-wheel \ python3-setuptools \ rapidjson-dev \ + python3.12-venv \ software-properties-common && \ rm -rf /var/lib/apt/lists/* From 2acd89852bc6d2135e577e40ae460a140d72dfe3 Mon Sep 17 00:00:00 2001 From: krishung5 Date: Mon, 24 Mar 2025 08:00:52 -0700 Subject: [PATCH 3/4] Fix syntax for L0_large_payload test --- qa/L0_large_payload/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/L0_large_payload/test.sh b/qa/L0_large_payload/test.sh index abc0473a84..b4aff503d1 100755 --- a/qa/L0_large_payload/test.sh +++ b/qa/L0_large_payload/test.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. +# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -71,7 +71,7 @@ cp ../python_models/identity_fp32/model.py all_models/python_$MODEL_SUFFIX/1/mod # Restart server before every test to make sure server state # is invariant to previous test -for TARGET in1 onnx libtorch plan python; do +for TARGET in onnx libtorch plan python; do rm -fr models && mkdir models && \ cp -r all_models/${TARGET}_$MODEL_SUFFIX models/. From 3225d52cd55c22515490db5503157c00df3bdc32 Mon Sep 17 00:00:00 2001 From: krishung5 Date: Mon, 24 Mar 2025 08:04:19 -0700 Subject: [PATCH 4/4] Fix syntax for L0_sequence_stress --- qa/L0_sequence_stress/sequence_stress.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/qa/L0_sequence_stress/sequence_stress.py b/qa/L0_sequence_stress/sequence_stress.py index 4e77e76abc..c8b14cf90b 100755 --- a/qa/L0_sequence_stress/sequence_stress.py +++ b/qa/L0_sequence_stress/sequence_stress.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -87,10 +87,7 @@ def check_sequence_async( (flag_str, value, expected_result, delay_ms) """ - if ( - or ("custom" in trial) - or ("plan" in trial) - ): + if ("custom" in trial) or ("plan" in trial): tensor_shape = ( 1, 1, @@ -174,7 +171,7 @@ def check_sequence_async( def get_datatype(trial): # Get the datatype to use based on what models are available (see test.sh) - if ("plan" in trial): + if "plan" in trial: return np.float32 return np.int32