What type of PR is this?
Uncomment only one
/kind <>
line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind task
What does this PR do / why do we need it:
Support user-defined classes by ms_class decorators.
Which issue(s) this PR fixes:
Fixes #I4S40C
#I4IH0E
Special notes for your reviewers:
新增ms_class对外接口,支持调用自定义class的attr/method。
特性设计文档:https://e.gitee.com/mind_spore/projects/69994/docs/880973/file/2292690?sub_id=5331966
支持场景:
1、调用自定义Class的attr
2、调用自定义Class的method
3、调用ms_class嵌套的自定义Class的attr/method
4、调用nn.Cell与ms_class嵌套的自定义Class的attr/method
使用说明:
1、支持class instance,不支持直接从类定义中获取属性。
2、支持嵌套调用自定义class的属性/方法;
3、不支持对nn.Cell使用@ms_class装饰器;
4、不支持非class类型使用@ms_class装饰器;
5、不支持自定义class的私有属性或魔术方法