Skip to content

If arg is None during OpGraph generation then ignore it #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 3 additions & 0 deletions sdk/edir/et_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from collections import defaultdict

from enum import Enum
from types import NoneType
from typing import Any, Dict, List, Optional, Set, Tuple

import torch
Expand Down Expand Up @@ -147,6 +148,8 @@ def _parse_args( # noqa: C901
raise Exception(
f"Unsupported argument encountered in list {arg}, {type(arg[0])}"
)
elif isinstance(arg, NoneType):
continue
else:
raise Exception(f"Unsupported argument encountered {op}, {name}, {arg}")

Expand Down