refCastFrom possible UB implementation
I'm quite unsure of this implementation:
https://gitlab.eclipse.org/eclipse/aidge/aidge_core/-/blob/main/include/aidge/data/Tensor.hpp?ref_type=heads#L640
AFAIUnderstand: device()
call creates a std::pair
rvalue on which your taking a const reference.
When passing a rvalue by const reference it extend its lifetime till the end of the function. In the current case I don't know the rule. Standard should be checked in order to be sure that device
reference does not get dangling.