Arraymancer icon indicating copy to clipboard operation
Arraymancer copied to clipboard

Autograd - Implement slice autograd properly

Open mratsim opened this issue 5 years ago • 0 comments

See https://github.com/mratsim/Arraymancer/pull/304#issuecomment-425751045

When slicing a tensor returns a scalar we lose track of the autograd graph: https://github.com/mratsim/Arraymancer/blob/0d31645fbce3dfdc5ffc8575402c10726747e40c/src/autograd/gates_shapeshifting_views.nim#L41-L46

This might require #87 or using object variant in Variable to store either a scalar or a Tensor (or use object variant at the tensor level)

mratsim avatar Sep 30 '18 20:09 mratsim