Commit 28318a0
committed
[memory strides] update check functions
[Change]
- Add support for memory strides to the check functions.
- Check that memory strides provided are compatible with
the given tensor shape.
- Check that memory strides are compatible with the kernel.
- Check that the inner most mem stride equals 1
- Check that the output tensor has enough memory allocated and
take into consideration the memory strides provided in
the output tensor.
- All memory strides set to zero is supported, which means
that each kernel calculates its own memory strides
such that all data is contiguous.
Signed-off-by: R. Hilkens <hilkens@synopsys.com>1 parent 1ae4883 commit 28318a0
File tree
3 files changed
+279
-86
lines changed- lib/src
- kernels/common
- private
- src
3 files changed
+279
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| 273 | + | |
| 274 | + | |
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| |||
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
0 commit comments