You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by SunWook Jung via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/10/20 17:11:57 UTC

[Apache TVM Discuss] [Questions] Do we have to identify tvm.nd.array context?


for example, if we use `ctx=cuda`,

both input datas are run correctly.

I saw that default tvm.nd.array context is cpu(0),
>input =  tvm.nd.array(shape)


but, I designate context "cuda"
> input = tvm.nd.array(shape, ctx)

both inputs are run correctly, but it have small performance diffs.

**Can we get better perfs with designated context like second one?**

I want to know about principle of tvm data context





---
[Visit Topic](https://discuss.tvm.apache.org/t/do-we-have-to-identify-tvm-nd-array-context/8218/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/cab56d5977fdc19599b9c383c35ea5c6ba3ceb4514bcf9981db9e56a779fc4d9).