Oneflow-Inc / oneflow

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.
http://www.oneflow.org
Apache License 2.0
5.87k stars 667 forks source link

Support OOP? #3392

Open carefree0910 opened 4 years ago

carefree0910 commented 4 years ago

For now all examples in the documentation seems to be procedure oriented. I've inspected some source codes of flow.global_function and found it really hard to do OOP 😢

I was just wondering whether there are some examples which are object oriented (e.g. some torch.nn.Module-like examples) ? Thanks in advance!

ShawnXuan commented 4 years ago

We will consider your suggestion to support object oriented, such as provide forward function in class module. Thanks a lot for your suggestion!