torch.compiler.reset¶ torch.compiler.reset()[源][源]¶ 此函数清除所有编译缓存,并将系统恢复到初始状态。建议调用此函数,尤其是在使用诸如 torch.compile(…) 等操作后,以确保在进行另一次不相关的编译之前处于干净状态。