|
|
|
|
|
by mlevental
2478 days ago
|
|
notice the qualifier "really". obviously you can implement autodiff kind of outside the complier since pytorch and tensor flow exist. but those implementations constrain you to a select few compositions (please no comments on Turing completeness with just loops and conditionals). so for example if statements in pytorch are not differentiable (they might have piece wise continuous derivates) because pytorch doesn't actually trace the ast. I'm not a languages expert but outside of implementing in the compiler I imagine you'd need a homoiconic language to implement as a library. |
|
Take
How do you optimize this to maximize x, regardless of what language you're in?It's true that you can get a derivative, but the derivative is essentially meaningless.