Template Function tvm::WithAttrs#
Defined in File attrs.h
Function Documentation#
-
template<typename TFunc>
inline TFunc tvm::WithAttrs(TFunc input, ffi::Map<ffi::String, Any> attrs)# Copy the function or module, but overrides the attributes with the entries from
attrs.- Parameters:
- Template Parameters:
TFunc – The corresponding function or module type, including BaseFunc. Shared inputs must register a reflected shallow-copy constructor.
- Returns:
The new function or module with updated attributes.