Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/arm/_passes/arm_pass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def get_node_arg(args: list | dict, key: int | str | type, default_value=None):
"""Help-function for getting a value from node.args/ kwargs, three cases:

1. By position in node.args - Returns arg at given position or default_value if index is one out of bounds
2. By key in node.kwargs - Returns kwarg with given key or default_value if it deos not exist
3. By type in node.args - Returns first arg of args of given type. Useful for cases where arg postions may differ but types are unique.
2. By key in node.kwargs - Returns kwarg with given key or default_value if it does not exist
3. By type in node.args - Returns first arg of args of given type. Useful for cases where arg positions may differ but types are unique.

"""
if isinstance(key, int):
Expand Down
Loading