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 Jiao Paner via TVM Discuss <no...@discuss.tvm.ai> on 2019/10/25 01:57:09 UTC

[TVM Discuss] [Questions] What's the differences between relay.build and nnvm.compiler.build?


Here are two methods to convert model, what's the differences?
1.first method:
```bash
mod,params =relay.frontend.from_mxnet(sym,shape_dict,arg_params=arg_params,aux_params=aux_params)
 with relay.build_config(opt_level=opt_level):
    graph, lib, params = relay.build(mod, target=target, params=params)
```
2.second method:
```bash
nnvm_sym, nnvm_params = nnvm.frontend.from_mxnet(sym, arg_params, aux_params)
with nnvm.compiler.build_config(opt_level=opt_level):
    graph, lib, params = nnvm.compiler.build(nnvm_sym, target, shape_dict, params=nnvm_params)
```





---
[Visit Topic](http://tracking.discuss.tvm.ai/tracking/click?d=oVLhXluMs4uBzJ8NNdwq5Qp_vWfxLc7rqMCkd6vb2d8Q521qkDdgflqwViseBxIDb5SUdfxHj2RNhsi2yBsVjaPZwwUQvNjqdqtSmdw-PcUVvsVMT8DQ1WCPKh8E5xWphv0gCnrPAQMhL3B1_4BAOdbepDkrdydoHRDfXP1LeM3wJzEBqGIbI-3iY4j2fl1tXEfOHtyCjNceFcu7wuJkOCg1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](http://tracking.discuss.tvm.ai/tracking/click?d=7cFgOaAA4XIBVlVKt_oyC07uihTjg4Q6cjeBRNRTiPphU2ZYHhr_Zq3kbTZ8qNtSj0ipWC6h4per29ShrBvaM0azvS_Y0x8-b5H8jZx0PLSHIOGVxsE6V5BX-bPMKnWN2SKFjWIjhv8Z1GKRLz-chEDICqHbSousR0fjvohevJZ9c6RtgdTw3Xf6qSnfWBFDm_d1A65x9vWQX3pjYPw0-wXyhWfOxqmPrghsffPGf4FK0).

Tianqi Chen, UW, Seattle, WA, 98105, United States
http://tracking.discuss.tvm.ai/tracking/unsubscribe?msgid=9oGEhTyHvR7S-ojk-PtAHQ2