推理 API

deepspeed.init_inference() 返回一个类型为 InferenceEngine推理引擎

for step, batch in enumerate(data_loader):
    #forward() method
    loss = engine(batch)

前向传播