MCPcopy Create free account
hub / github.com/apache/tvm-ffi / shape

Method shape

include/tvm/ffi/container/tensor.h:311–314  ·  view source on GitHub ↗

! * \brief Get the shape of the Tensor. * \return The shape of the Tensor. */

Source from the content-addressed store, hash-verified

309 * \return The shape of the Tensor.
310 */
311 ShapeView shape() const {
312 const TensorObj* obj = get();
313 return tvm::ffi::ShapeView(obj->shape, obj->ndim);
314 }
315
316 /*!
317 * \brief Get the strides of the Tensor.

Callers 1

numelMethod · 0.95

Calls 2

ShapeViewClass · 0.85
getFunction · 0.70

Tested by

no test coverage detected