add document for infer