The Matrix-Multiplication graph class can specify the data type of the output matrix with the template parameter, TT_OUT_DATA
. This can allow a 32-bit output type when both inputs are 16-bit.
For example, TT_OUT_DATA
can be set to cint32, when TT_DATA_A
is int16 and TT_DATA_B
is cint16.
TT_OUT_DATA
must be the same or greater precision than both of the input types. The default TT_OUT_DATA
values for each input type combination are listed in the tables below.