microsoft / onnxruntime-genai

Generative AI extensions for onnxruntime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot get device_type from Python API

natke opened this issue · comments

After loading a model, I tried:

     print(model.device_type)

but got the following error:

 E       TypeError: Unable to convert function return value to a Python type! The signature was
E               (arg0: onnxruntime_genai.onnxruntime_genai.Model) -> Generators::DeviceType