class_docstr: An abstract database with customized methods on the python-side.
  This is the user facing class for function overloading inheritance.
  
  Note: @derived_object is required for proper usage of any inherited class.
class_docstr_tok: ["An","abstract","database","with","customized","methods","on","the","python-side",".","This","is","the","user","facing","class","for","function","overloading","inheritance",".","Note",":","@","derived_object","is","required","for","proper","usage","of","any","inherited","class","."]
docstr: Commit a workload to the database if missing.
  
  Parameters
  ----------
  mod : IRModule
      The IRModule to be searched for or added.
  
  Returns
  -------
  workload : Workload
      The workload corresponding to the given IRModule.
docstr_tok: ["Commit","a","workload","to","the","database","if","missing",".","Parameters","--","--","--","--","--","mod",":","IRModule","The","IRModule","to","be","searched","for","or","added",".","Returns","--","--","--","-","workload",":","Workload","The","workload","corresponding","to","the","given","IRModule","."]
code: def commit_workload(self, mod: IRModule) -> Workload:
      """Commit a workload to the database if missing.
  
      Parameters
      ----------
      mod : IRModule
          The IRModule to be searched for or added.
  
      Returns
      -------
      workload : Workload
          The workload corresponding to the given IRModule.
      """
      raise NotImplementedError
  
imports: from typing import Any, Callable, List, Optional, Union
  from typing_extensions import Literal
  from tvm._ffi import register_object
  from tvm.ir.module import IRModule
  from tvm.runtime import Object
  from tvm.target import Target
  from tvm.tir.schedule import Schedule, Trace
  from ..None import _ffi_api
  from ..arg_info import ArgInfo
  from ..utils import _json_de_tvm
label_desc: Use image node_id 2 for calling the PyDatabase obj's underlying member method code with example usage: obj.commit_workload(mod) without return types