# 测试
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])
NTT模板 #include<bits/stdc.h>
using namespace std;
#define LL long long
const int MAXL22;
const int MAXN1<<MAXL;
const int Mod998244353;
int rev[MAXN],A[MAXN],B[MAXN],C[MAXN];
int fast_pow(int a,int b){int ans1;while(b){if(b&1)ans1ll*ans*a%…