Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions python/tvm/relay/op/contrib/arm_compute_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def check_qnn_dense(extract):

def check_avg_pool2d(extract):
"""Check average pool2d pattern is supported by ACL."""
if extract.attrs.dtype != "uint8":
if extract.attrs.dtype not in ("uint8", "int8"):
return False
pool = extract.args[0]
if pool.args[0].attrs.dtype != "int32":
Expand Down Expand Up @@ -439,7 +439,7 @@ def max_pool2d(expr):
if attrs.layout != "NHWC":
return False
typ = args[0].checked_type
if typ.dtype not in ["float32", "uint8"]:
if typ.dtype not in ["float32", "uint8", "int8"]:
return False
return check_dilation(attrs)

Expand Down Expand Up @@ -467,7 +467,7 @@ def global_max_pool2d(expr):
"""Check if the external ACL codegen for gloval_maxpool2d should be used."""
attrs, args = expr.attrs, expr.args
typ = args[0].checked_type
if typ.dtype not in ["float32", "uint8"]:
if typ.dtype not in ["float32", "uint8", "int8"]:
return False
if attrs.layout != "NHWC":
return False
Expand Down
Loading