MCPcopy Create free account
hub / github.com/apache/tvm / reshape

Function reshape

python/tvm/topi/transform.py:360–374  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

358
359
360def 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
377def squeeze(a, axis=None):

Callers 2

scanopFunction · 0.50

Calls 1

reshapeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…