lf1-io / padl

Functional deep learning
Apache License 2.0
106 stars 4 forks source link

Bring back `<<` #424

Open wuhu opened 2 years ago

wuhu commented 2 years ago

🛰️ Feature

In aleph it used to be possible to write

mytransform << 1

instead of

mytransform(1)

In my opinion this is super convenient for interactive use when working with / inspecting composed transforms.

bla[:3] >> he >> hu << 1

instead of

(bla[:3] >> he >> hu)(1)

I don't know of any drawback.