This PR allows to have 0 for incX and incY in tensor raw compuation to
enable broadcasting tensor operation.
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
static void saxpy_raw(const unsigned int N, const float alpha, const float *X,
const int incX, float *Y, const int incY) {
- if (incX <= 0 or incY <= 0)
+ if (incX < 0 or incY < 0)
throw std::invalid_argument(
"Error: negative inc not supported without cblas");
for (unsigned int i = 0; i < N; ++i)