24#ifndef TVM_TOPI_UTILS_H_
25#define TVM_TOPI_UTILS_H_
27#include <tvm/ffi/function.h>
41 ffi::Array<int64_t> result;
42 result.push_back(
opt_int.value());
45 return arg.cast<ffi::Array<int64_t>>();
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
Definition device_api.h:46
ffi::Optional< ffi::Array< int64_t > > ArrayOrInt(AnyView arg)
Canonicalize an argument that may be ffi::Array<Expr> or int to ffi::Array<Expr>
Definition utils.h:36
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analyzer.h:40