Cython issue: Don't know how to handle type <class 'nnvm.graph.Graph'>

Hi, I have an issue regarding recent cython update, which seems to broke all Tensorflow frontend tests at least. The error is:

In [3]: test_forward_lstm()

...

~/tvm/nnvm/python/nnvm/compiler/build_module.py in precompute_prune(graph, params)
    397     graph._set_json_attr("param_name_list", list(params.keys()), "list_str")
    398     graph = graph.apply("PrecomputePrune")
--> 399     pre_graph = graph_attr._move_out_graph(graph, "precompute_graph")
    400     if pre_graph is None:
    401         return graph, params

~/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy2.core.FunctionBase.__call__()
~/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy2.core.FuncCall()
~/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy2.core.FuncCall3()
~/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy2.core.make_arg()
TypeError: Don't know how to handle type <class 'nnvm.graph.Graph'>

Do you know what is the cause and how to fix?

Note: Problem was solved by removing *so files from _cy2/_cy3 folders and rebuilding. Why weren’t they regenerated automatically - that is the question.

they are regenerated by typing make cython and make cython3.