47 intermediate_type val =
static_cast<intermediate_type
>(src1[i]) + static_cast<intermediate_type>(src2[i]);
TensorShape shape() const override
Shape of the tensor.
SimpleTensor< T > arithmetic_addition(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2, DataType dst_data_type, ConvertPolicy convert_policy)
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_elements() const override
Number of elements of the tensor.
DataType
Available data types.
ConvertPolicy
Policy to handle overflow.