24#ifndef TVM_RELAX_ATTRS_STATISTICAL_H_
25#define TVM_RELAX_ATTRS_STATISTICAL_H_
34 ffi::Optional<ffi::Array<int64_t>>
axis;
38 namespace refl = tvm::ffi::reflection;
39 refl::ObjectDef<StatisticalAttrs>()
41 "The axis or axes along which to perform the reduction.")
43 "If this is set to `True`, the reduced axes are left in the result as dimension "
52 ffi::Optional<int64_t>
axis;
53 ffi::Optional<DLDataType>
dtype;
57 namespace refl = tvm::ffi::reflection;
58 refl::ObjectDef<ScanopAttrs>()
60 "The axis along which to perform the scan computation."
61 "The default (None) is to compute over the flattened array.")
63 "The output data type."
64 "If dtype is not specified, it defaults to the dtype of input data.")
66 refl::DefaultValue(
false));
Base class of all attribute class.
Definition attrs.h:49
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analyzer.h:40
Attributes used in scan operators like cumsum, cumprod.
Definition statistical.h:51
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.ScanopAttrs", ScanopAttrs, AttrsNode)
ffi::Optional< int64_t > axis
Definition statistical.h:52
ffi::Optional< DLDataType > dtype
Definition statistical.h:53
bool exclusive
Definition statistical.h:54
static void RegisterReflection()
Definition statistical.h:56
Attributes for statistical operators.
Definition statistical.h:33
static void RegisterReflection()
Definition statistical.h:37
ffi::Optional< ffi::Array< int64_t > > axis
Definition statistical.h:34
bool keepdims
Definition statistical.h:35
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.StatisticalAttrs", StatisticalAttrs, AttrsNode)