Hi I just started to learn TVM and noted that some code in FCRC workshop are 
too old to run with lastest tvm (0.8_dev) 
FCRC code lab link

[https://sampl.cs.washington.edu/tvmfcrc/]

So I put the fix here for any starters.

1. relay.Module not exist anymore

    mod = tvm.IRModule({})

2. get params from IRModule changed (in inline_parameters)

   param_map = dict((p.name_hint, p) for p in expr["main"].params)        
   params = dict((param_map[k], relay.const(params[k])) for k in params)

3. relay.ir_pass is moved to relay.analysis

    relay.Function(relay.analysis.free_vars(new_body), new_body)





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/tutorial-fix-tvm-2019-fcrc-code/9135/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/bd3f531853e7624d7f6fd13f703c5db31d50268ba071ea0573ba7740893c7247).

Reply via email to