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

Indexing with negative indices failed #123

Closed marty1885 closed 4 years ago

marty1885 commented 4 years ago

98 handles negative steps. But doesn't handle negative indices.

This fails

Tensor q = t.view({3});
Tensor r = t.view({-1});
if(r.has_value()) {
    std::cout << r << std::endl;
    CHECK(q.isSame(r));
}
marty1885 commented 4 years ago

solved in #124