Mentions légales du service

Skip to content
Snippets Groups Projects
Commit eb82e402 authored by hhakim's avatar hhakim
Browse files

Optimize faust_torch module to avoid cloning data (by default) when possible.

It's still possible to clone data using the new argument 'clone' set to the value true.

Unfortunately it's mandatory to clone indices for a sparse matrix to sparse tensor conversion because torch imposes to use the same size types for both values and indices (even if values are floats and indices integers) but Faust/eigen uses 32 bits for indices and 64 bits for data (when double is used as FPP template parameter)

[skip ci]
parent f42fb075
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment