class_docstr: Initialize a TVMC model from a relay model definition or a saved file.
  
  Parameters
  ----------
  mod : tvm.IRModule, optional
      The relay module corresponding to this model.
  params : dict, optional
      A parameter dictionary for the model.
  model_path: str, optional
      An alternative way to load a TVMCModel, the path to a previously
      saved model.
class_docstr_tok: ["Initialize","a","TVMC","model","from","a","relay","model","definition","or","a","saved","file",".","Parameters","--","--","--","--","--","mod",":","tvm.IRModule",",","optional","The","relay","module","corresponding","to","this","model",".","params",":","dict",",","optional","A","parameter","dictionary","for","the","model",".","model_path",":","str",",","optional","An","alternative","way","to","load","a","TVMCModel",",","the","path","to","a","previously","saved","model","."]
docstr: Load a TVMCModel from disk.
  
  Parameters
  ----------
  model_path : str
      A path to load the TVMCModel from.
docstr_tok: ["Load","a","TVMCModel","from","disk",".","Parameters","--","--","--","--","--","model_path",":","str","A","path","to","load","the","TVMCModel","from","."]
code: def load(self, model_path: str):
      """Load a TVMCModel from disk.
  
      Parameters
      ----------
      model_path : str
          A path to load the TVMCModel from.
      """
      temp = self._tmp_dir
      t = tarfile.open(model_path)
      t.extractall(temp.relpath("."))
  
      # Load relay IR.
      relay_path = temp.relpath("model.json")
      with open(relay_path, "r") as relay_file:
          self.mod = tvm.ir.load_json(relay_file.read())
  
      # Load parameter dictionary.
      params_path = temp.relpath("model.params")
      with open(params_path, "rb") as params_file:
          self.params = relay.load_param_dict(params_file.read())
  
imports: import os
  import tarfile
  import json
  from typing import Optional, Union, Dict, Callable, TextIO
  from pathlib import Path
  import numpy
  import tvm
  import tvm.contrib.cc
  from tvm import relay
  from tvm.contrib import utils
  from tvm.driver.tvmc import TVMCException
  from tvm.relay.backend.executor_factory import GraphExecutorFactoryModule
  from tvm.runtime.module import BenchmarkResult
  from tvm.runtime.vm import Executable
label_desc: Use image node_id 3 for calling the TVMCModel obj's underlying member method code with example usage: obj.load(model_path) without return types