execution argument index
- The memory format can be either specified by a user or derived the most appropriate one by the primitive. The recommended way is to allow the primitive to choose the appropriate format.
- The sum primitive requires all source and destination tensors to have the same shape. Implicit broadcasting is not supported.
- The sum primitive supports in-place operation, meaning that the tensor can be used as both input and output. In-place operation overwrites the original data. Using in-place operation requires the memory footprint of the output tensor to be either bigger than or equal to the size of the memory descriptor used for primitive creation.
- Whenever possible do not specify the destination memory format so that the primitive is able to choose the most appropriate one.
- The sum primitive is highly optimized for the cases when all source tensors have same memory format and data type matches the destination tensor data type. For other cases more general but slower code is working. Consider reordering sources to the same data format before the sum primitive.
- Use in-place operations whenever possible (see caveats in General Notes).