From 76f353cdd7a9ddddccf7ddc9968bdf0570c78613 Mon Sep 17 00:00:00 2001 From: Yingge He Date: Thu, 2 Jan 2025 16:53:54 -0800 Subject: [PATCH] Minor updates --- LICENSE | 2 +- qa/common/gen_common.py | 5 +++-- qa/common/gen_qa_dyna_sequence_models.py | 2 +- qa/common/gen_qa_identity_models.py | 2 +- qa/common/gen_qa_model_repository | 2 +- qa/common/gen_qa_models.py | 2 +- qa/common/gen_qa_reshape_models.py | 2 +- qa/common/gen_qa_sequence_models.py | 2 +- 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/LICENSE b/LICENSE index 914565ec7d..d367cc74ad 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. +Copyright (c) 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 diff --git a/qa/common/gen_common.py b/qa/common/gen_common.py index 2e6cd4497d..5b7709504b 100644 --- a/qa/common/gen_common.py +++ b/qa/common/gen_common.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2023-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 @@ -29,7 +29,6 @@ # Common utilities for model generation scripts import numpy as np -import openvino as ov np_dtype_string = np.dtype(object) @@ -173,6 +172,8 @@ def np_to_torch_dtype(np_dtype): def openvino_save_model(model_version_dir, model): + import openvino as ov + # W/A for error moving to OpenVINO new APIs "Attempt to get a name for a Tensor without names". # For more details, check https://github.com/triton-inference-server/openvino_backend/issues/89 if len(model.outputs) == 0: diff --git a/qa/common/gen_qa_dyna_sequence_models.py b/qa/common/gen_qa_dyna_sequence_models.py index 7b95e2e66e..bd5f2b758c 100755 --- a/qa/common/gen_qa_dyna_sequence_models.py +++ b/qa/common/gen_qa_dyna_sequence_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2024, 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 diff --git a/qa/common/gen_qa_identity_models.py b/qa/common/gen_qa_identity_models.py index 7865d24e58..e74a4f62b7 100755 --- a/qa/common/gen_qa_identity_models.py +++ b/qa/common/gen_qa_identity_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2024, 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 diff --git a/qa/common/gen_qa_model_repository b/qa/common/gen_qa_model_repository index 2a8b23254f..c4bd68753c 100755 --- a/qa/common/gen_qa_model_repository +++ b/qa/common/gen_qa_model_repository @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2018-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 diff --git a/qa/common/gen_qa_models.py b/qa/common/gen_qa_models.py index befd9a8946..bb9d5f530b 100755 --- a/qa/common/gen_qa_models.py +++ b/qa/common/gen_qa_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2018-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2018-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 diff --git a/qa/common/gen_qa_reshape_models.py b/qa/common/gen_qa_reshape_models.py index 07db78fa11..17806cf87a 100755 --- a/qa/common/gen_qa_reshape_models.py +++ b/qa/common/gen_qa_reshape_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2024, 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 diff --git a/qa/common/gen_qa_sequence_models.py b/qa/common/gen_qa_sequence_models.py index 5a3028c4a1..ca0e2536c2 100755 --- a/qa/common/gen_qa_sequence_models.py +++ b/qa/common/gen_qa_sequence_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2024, 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