Class ShapeObj#

Inheritance Relationships#

Base Types#

Derived Type#

  • public tvm::ffi::details::ShapeObjStdImpl

Class Documentation#

class ShapeObj : public tvm::ffi::Object, public TVMFFIShapeCell#

An object representing a shape tuple.

Subclassed by tvm::ffi::details::ShapeObjStdImpl

Public Types

using index_type = int64_t#

The type of shape index element.

Public Functions

inline int64_t Product() const#

Get “numel”, meaning the number of elements of an array if the array has this shape.