Contiguous Compute APIs

Contiguous compute APIs support computation of the first n data elements of a tensor. They compute n contiguous data elements of the source operand and contiguously write the data to the destination operand to solve the contiguous compute problem of the one-dimensional tensor.
1
Add(dst, src1, src2, n);

The following figure uses vector addition as an example to show the characteristics of contiguous compute APIs.

Figure 1 Characteristics of contiguous compute APIs