未验证 提交 0baacc69 编写于 作者: W WangZhen 提交者: GitHub

Fix backend typo in ut (#52757)

上级 f9b155f9
......@@ -170,10 +170,10 @@ class TestBackend(unittest.TestCase):
out2 = self.forward(x, None)
np.testing.assert_allclose(out1, out2, rtol=1e-6)
def forward(self, x, beckend=None):
def forward(self, x, backend=None):
paddle.seed(2022)
net = PrimeNet()
net = paddle.jit.to_static(net, backend=beckend)
net = paddle.jit.to_static(net, backend=backend)
out = net(x)
return out
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册