witiny
1
I have a class, inherited from Object:
class WtObj : public Object{}
class Wt : public ObjectRef{}
and then:
TVM_REGISTER_OBJECT_TYPE(WtObj);
in c++:
*rv = wt(graph);
but when I receive it from python side, i get NoneType: <class ‘NoneType’>, what’s wrong with it ? anybody can help??
witiny
2
I use this like IntVectorObj of tvm_ext,THNAKS!
witiny
3
In python side, I use @tvm.register_object(“tvm_ext.Wt”)
class Wt(object):
‘’’’
Would you like to provide a minimum reproducible example?
witiny
5
Thanks! problem resolved!