AutoTVM + Relay tutorials broken?

Hi, I’m getting an error below when running tune_relay_x86.py or tune_relay_cuda.py with the latest master. Are they supposed to work? @eqy

$ python tune_relay_x86.py 
Extract tasks...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/masa/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/masa/anaconda3/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/masa/project/dev/tvm/python/tvm/relay/build_module.py", line 265, in build
    func = optimize(func, target, params)
  File "/home/masa/project/dev/tvm/python/tvm/relay/build_module.py", line 159, in optimize
    func = _bind_params_by_name(func, params)
  File "/home/masa/project/dev/tvm/python/tvm/relay/build_module.py", line 129, in _bind_params_by_name
    bind_dict[arg] = expr.const(v)
  File "/home/masa/project/dev/tvm/python/tvm/relay/expr.py", line 538, in const
    return Constant(value)
  File "/home/masa/project/dev/tvm/python/tvm/relay/expr.py", line 124, in __init__
    self.__init_handle_by_constructor__(_make.Constant, data)
  File "tvm/_ffi/_cython/./node.pxi", line 86, in core.NodeBase.__init_handle_by_constructor__
  File "tvm/_ffi/_cython/./function.pxi", line 243, in core.ConstructorCall
  File "tvm/_ffi/_cython/./function.pxi", line 221, in core.FuncCall
  File "tvm/_ffi/_cython/./function.pxi", line 209, in core.FuncCall3
  File "tvm/_ffi/_cython/./function.pxi", line 154, in core.make_arg
TypeError: Don't know how to handle type <class 'tvm.ndarray.NDArray'>

I’ll take a look at this, there might be a regression somewhere.

Also met this issue, it only happened on Python3

I don’t meet this issue. I use the latest.

Hardware env:
macOS.
Python 3.6.5.

and

Linux Ubuntu 16.04
Python 3.5.2

rebuild ffi with make cython works for me

thanks, worked for me too.