# 测试
X, y =iter(test_iter).next()true_labels = d2l.get_fashion_mnist_labels(y.numpy())
pred_labels = d2l.get_fashion_mnist_labels(net(X).argmax(dim=1).numpy())
titles =[true +'\n'+ pred for true, pred inzip(true_labels, pred_labels)]d2l.show_fashion_mnist(X[0:9], titles[0:9])
异同点 都可以对表行转列;DECODE功能上和简单Case函数比较类似,不能像Case搜索函数一样,进行更复杂的判断在Case函数中,可以使用BETWEEN, LIKE, IS NULL, IN, EXISTS等等(也可以使用NOT IN和NOT EXISTS,但是…