lf1-io / padl

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

More explicit map printing. #381

Closed wuhu closed 2 years ago

wuhu commented 2 years ago
Map of Compose:

   ~ ( tokenize >> to_tensor >> Batchify(dim=0) >> [..+..] >> cross_entropy_loss )

instead of

<anonymous map>:

   ~ tokenize >> to_tensor >> Batchify(dim=0) >> [..+..] >> cross_entropy_loss