Skip to content

Commit

Permalink
[EthosU] Use ethos-u as both device and host
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunderberg committed Aug 8, 2023
1 parent e9a4c32 commit 85b1d5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tvm/relay/backend/contrib/ethosu/tir/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def transform_npu_function(self, _, func: relay.Function) -> relay.Function:
primfunc = tir_mod["main"]
primfunc = primfunc.with_attr("global_symbol", func.attrs["global_symbol"])
primfunc = primfunc.with_attr("ethos-u.constants", const_dict)
primfunc = primfunc.with_attr("target", tvm.target.Target(compiler_name))
primfunc = primfunc.with_attr(
"target", tvm.target.Target(compiler_name, host=compiler_name)
)
return primfunc

def __call__(self, *args, **kwargs):
Expand Down

0 comments on commit 85b1d5e

Please sign in to comment.