9 lines
293 B
Python
9 lines
293 B
Python
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
def strip_param_name_prefix(name: str):
|
|
prefix = "module."
|
|
while name.startswith(prefix):
|
|
name = name.removeprefix(prefix)
|
|
return name
|