Class ShapeObj#
Defined in File shape.h
Inheritance Relationships#
Base Types#
public tvm::ffi::Object
(Class Object)public TVMFFIShapeCell
(Struct TVMFFIShapeCell)
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.
-
using index_type = int64_t#