def METHOD_NAME(self, model):
    device = ort.get_device()
    cuda = True if device == 'GPU' else False
    try:
        providers = ['CUDAExecutionProvider', 'CPUExecutionProvider'] if cuda else ['CPUExecutionProvider']
        so = ort.SessionOptions()
        so.log_severity_level = 3
        self.model = ort.InferenceSession(model, providers=providers, sess_options=so)
        self.output_details = [i.name for i in self.model.get_outputs()]
        self.input_details = [i.name for i in self.model.get_inputs()]
        self.is_inititated = True
    except Exception as e:
        raise Exception(f"Cannot load model {model}: {e}")