Commit ea0579d
committed
Added tensor_impl._same_logical_tensors predicate
The predicate determines is argument arrays are the same
(same dimension, shape, data type, pointer, strides). Used
to determine if copying must be performed in case of overlap
to avoid race condition.1 parent 9246e14 commit ea0579d
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
341 | 351 | | |
342 | 352 | | |
343 | 353 | | |
| |||
0 commit comments