Skip to content

[core] Tensor V2

The aim of this issue is tu mutualize several Tensor related issues and propose a corresponding design that is, so far, partially implemented in !13 (closed).

aidge#8 (closed) function removed in !13 (closed)
aidge#24 (closed)
aidge#25 (closed) partially addressed in !13 (closed)
aidge#26 (closed) addressed in !13 (closed)
#5 (moved) addressed in !13 (closed)
#6 (moved) addressed in !13 (closed)
#12 (moved)
#13 (moved)
#14 (moved) partially addressed in !13 (closed)
#17 (moved)
#18 (moved) addressed in !13 (closed)
#21 (moved)
#22 (moved)
#23 (moved)
#26 (moved) addressed in !13 (closed)
#28 (moved) partially addressed in !13 (closed)
#29 (moved)
#32 (moved) addressed in !13 (closed)
#35 (moved)
#38 (moved) partially addressed in !13 (closed)

A proposed design would be

Tensor
   // active area description
   first data coordinates in active area
   dimensions of the active area
   // stored area description
   first data coordinates in stored area
   dimensions of the stored area
   data type
   backend
   storage object // actual type depending of backend

Storage object represents raw storage that knows nothing about the Tensor.
In !13 (closed) TensorImpl partially correspond to the stored area description.

An open issue is how to have an efficient access to backend-independant data in the TensorImpl as both TensorImpl concrete objects and Tensor may need these informations.

Edited by laurent soulier