pytorch-ignite / code-generator

Web Application to generate your training scripts with PyTorch Ignite
https://code-generator.pytorch-ignite.ai/
BSD 3-Clause "New" or "Revised" License
40 stars 23 forks source link

Intermediate Representation #20

Open sdesrozis opened 3 years ago

sdesrozis commented 3 years ago

We are currently thinking about a visual representation of building blocks composing an application : PyTorch objects, handlers, metrics, engines, etc. The idea is to provide a graphical helper to organise events and dataflow. In my knowledge, it is an original approach that could be complementary to our code generator (from templates).

To do this, the visual representation (from a graphical tool, in the spirit of PyFlow https://github.com/wonderworks-software/PyFlow) should be described in a specific representation used by a code generator. This representation could be similar to the intermediate representation (IR) used in compilation (e.g llvm, gcc). It helps optimisation, and code generation.

I wonder about merging our effort to have a unique representation. I mean

What do you think about that ?

Some insights

trsvchn commented 3 years ago

How it started: rendering Jinja How it's going: developing IgniteScript :)

Ok, jokes aside, now. Personally, I like the idea, and I didn't see similar project for DL/ML. There is ludwig, but its w/o UI. It's a smth new to me and I am going to check the provided links (thanks to @sdesrozis), after I will let you know what I think.

ydcjeff commented 3 years ago

Thanks @sdesrozis I now have a clear picture of it. So, we are going to provide building blocks within a graphical tool, right ? I really like it. I also think that we might not need to write many templates then. Also I am new to this, so very excited about it.

sdesrozis commented 3 years ago

I think that is quite original. IMO, we need a common representation (IR) for both templates and graphical tool. You are working on the code generator. Really interested to hear you about that when you would have thought about it.

vfdev-5 commented 3 years ago

@sdesrozis I sent an invite for our next team meeting

sdesrozis commented 3 years ago

@sdesrozis I sent an invite for our next team meeting

I'm full on Wenesday 24th...