etaler / Etaler

A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.
BSD 3-Clause "New" or "Revised" License
89 stars 14 forks source link

Writing back from view to a view does not work #94

Closed marty1885 closed 4 years ago

marty1885 commented 4 years ago

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);
marty1885 commented 4 years ago

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