is_inference_model function

Determine if the input is an inference model