2026年人工智能训练师(二级)考前冲刺实操试题
一、单项选择题(每题1分,共20分)
1.在PyTorch2.1中,若需将FP32模型在线量化至INT8且保持动态图特性,应优先调用下列哪段代码?
A.torch.quantization.quantize_dynamic
B.torch.ao.quantization.quantize_fx
C.torchpile(mode=max-autotune)
D.torch.backends.cudnn.benchmark=True
答案:A
解析:quantize_dynamic支持在动态图模式下对权重进行INT8量化,无需校准数据,符
原创力文档

文档评论(0)