ModelTC / MQBench

Model Quantization Benchmark
Apache License 2.0
767 stars 140 forks source link

关于模型中有控制流不能被追踪的问题 #253

Closed wrxjt closed 1 year ago

wrxjt commented 1 year ago

大家的模型里面都没有控制流吗?这个问题是怎么解决的? raise TraceError('symbolically traced variables cannot be used as inputs to control flow') torch.fx.proxy.TraceError: symbolically traced variables cannot be used as inputs to control flow

Tracin commented 1 year ago

可以手动修改forward来让条件控制流变得确定;实际上trace可以给输入参数,来确定一个想要的控制流。

github-actions[bot] commented 1 year ago

This issue has not received any updates in 120 days. Please reply to this issue if this still unresolved!