"""第 19 课补全练习：按验证成绩选最佳版本。修改 solve，保持下方检查不变。"""
import math, io, argparse
import torch
from torch import nn
from torch.nn import functional as F
torch.set_num_threads(2)
torch.manual_seed(26)

def solve(validation, best):
    return validation < best

assert solve(4.1,4.2)
assert not solve(4.3,4.2)
assert not solve(4.2,4.2)
print("本课补全练习通过。")
