Reshape the array Parameters ---------- a : tvm.te.Tensor The tensor to be reshaped newshape : tuple of ints The new shape Returns ------- ret : tvm.te.Tensor
(a, newshape)
| 358 | |
| 359 | |
| 360 | def reshape(a, newshape): |
| 361 | """Reshape the array |
| 362 | |
| 363 | Parameters |
| 364 | ---------- |
| 365 | a : tvm.te.Tensor |
| 366 | The tensor to be reshaped |
| 367 | newshape : tuple of ints |
| 368 | The new shape |
| 369 | |
| 370 | Returns |
| 371 | ------- |
| 372 | ret : tvm.te.Tensor |
| 373 | """ |
| 374 | return cpp.reshape(a, newshape) |
| 375 | |
| 376 | |
| 377 | def squeeze(a, axis=None): |
no test coverage detected
searching dependent graphs…