Skip to content

Commit

Permalink
Follow linter
Browse files Browse the repository at this point in the history
Co-authored-by: Toshiki Maekawa <toshiki.maekawa-aoha-renesas@aoha.co.jp>
  • Loading branch information
maekawatoshiki and Toshiki Maekawa committed May 14, 2023
1 parent 7475c71 commit ee6ccb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tvm/relay/transform/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ def AnnotateSpans():
return _ffi_api.AnnotateSpans()


def FakeQuantizationToInteger(hard_fail=False, use_qat=False, optional_qnn_ops=[]):
def FakeQuantizationToInteger(hard_fail=False, use_qat=False, optional_qnn_ops=None):
# pylint: disable=anomalous-backslash-in-string
"""
Find regions of the graph of the form
Expand Down Expand Up @@ -1308,6 +1308,8 @@ def FakeQuantizationToInteger(hard_fail=False, use_qat=False, optional_qnn_ops=[
ret : tvm.transform.Pass
The registered FakeQuantizationToInteger pass.
"""
if optional_qnn_ops is None:
optional_qnn_ops = []
return _ffi_api.FakeQuantizationToInteger(hard_fail, use_qat, optional_qnn_ops)


Expand Down

0 comments on commit ee6ccb1

Please sign in to comment.