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 anders via Apache TVM Discuss <no...@discuss.tvm.ai> on 2023/06/29 10:51:43 UTC

[Apache TVM Discuss] [Questions] [Relax] How to initialize tvm.relax.testing.nn.Parameter with a real tensor


[quote="crispyberry, post:1, topic:15195, full:true"]
Hi guys,

I find in PyTorch we can use torch.nn.parameter.Parameter to initialize by a real tensor, but in relax it seems that we can only initial with shape. If I have a tensor(numpy or list), how can I set it as tvm.relax.testing.nn.Parameter, just like PyTorch can do?

Cheers.
[/quote]

you can optimize it by donating a pull-request, come on,  man!





---
[Visit Topic](https://discuss.tvm.apache.org/t/relax-how-to-initialize-tvm-relax-testing-nn-parameter-with-a-real-tensor/15195/2) 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/9bac2304917046d52c1a2682f2d2e7037078807f559d2688407750b8c32644ba).