class_docstr: GenericFunc node reference. This represents a generic function
  that may be specialized for different targets. When this object is
  called, a specialization is chosen based on the current target.
  
  Note
  ----
  Do not construct an instance of this object, it should only ever be
  used as a return value from calling into C++.
class_docstr_tok: ["GenericFunc","node","reference",".","This","represents","a","generic","function","that","may","be","specialized","for","different","targets",".","When","this","object","is","called",",","a","specialization","is","chosen","based","on","the","current","target",".","Note","--","--","Do","not","construct","an","instance","of","this","object",",","it","should","only","ever","be","used","as","a","return","value","from","calling","into","C++","."]
docstr: Set the default function to be used if no specializations match
  the current target.
  
  Parameters
  ----------
  func : function
      The default function
  
  allow_override : bool
      Whether to allow the current default to be overridden
docstr_tok: ["Set","the","default","function","to","be","used","if","no","specializations","match","the","current","target",".","Parameters","--","--","--","--","--","func",":","function","The","default","function","allow_override",":","bool","Whether","to","allow","the","current","default","to","be","overridden"]
code: def set_default(self, func, allow_override=False):
      """Set the default function to be used if no specializations match
      the current target.
  
      Parameters
      ----------
      func : function
          The default function
  
      allow_override : bool
          Whether to allow the current default to be overridden
      """
      _ffi_api.GenericFuncSetDefault(self, func, allow_override)
  
file_path: tvm/python/tvm/target/generic_func.py
imports: import tvm._ffi
  from tvm.runtime import Object
  from .target import Target
  from .None import _ffi_api
label_desc: Use image node_id 2 for calling the GenericFunc obj's underlying member method code with example usage: obj.set_default(func, allow_override) without return types