torch.testing 若API“是否支持”为“是”,“限制与说明”为“-”,说明此API和原生API支持度保持一致。 API名称 是否支持 限制与说明 torch.testing.assert_close 是 支持fp32 torch.testing.make_tensor 是 支持fp32,bool torch.testing.assert_allclose 是 支持fp32 父主题: PyTorch 2.1.0版本