etaler/Etaler

Writing back from view to a view does not work

marty1885 opened this issue · 1 comments

For example the following code does not work on OpenCL but works perfectly on CPU

reference_.view({(intmax_t)class_id}).assign(reference_.view({(intmax_t)class_id}) + sdr);

I've managed to track the bug down. The problem happens in the assign function and only happens when assigning from a 1D to a view of a 2D Tensor