saving inference results