class_docstr: Temporarily changes attr of ops to enable required precision.
class_docstr_tok: ["Temporarily","changes","attr","of","ops","to","enable","required","precision","."]
code: def __enter__(self):
      for op_name in self.ops:
          op = relay.op.get(op_name)
          self.older_attr[op_name] = op.get_attr(self.attr_key)
          op.reset_attr(self.attr_key)
          op.set_attr(
              self.attr_key,
              generate_mixed_precision_rule(self.acc_type),
          )
      return self
  
file_path: tvm/python/tvm/driver/tvmc/transform.py
imports: from tvm import relay, transform
  from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 2 for calling the MixedPrecision obj's underlying member method code with example usage: obj.__enter__() and returns: self