ctongfei / nexus

Experimental tensor-typed deep learning
https://tongfei.me/nexus/
MIT License
257 stars 15 forks source link

Polymorphic differentiable functions #38

Open ctongfei opened 5 years ago

ctongfei commented 5 years ago

Hopefully in Scala 3, with https://github.com/lampepfl/dotty/pull/4672, we could do

type Func1[X, Y] = [F[_]: Algebra] -> F[X] => F[Y]