1. AttributeError:module 'tensorrt' has no attribute 'PaddingMode'

解决办法:是tensorrt版本问题,可以将版本升级到5.1+就可以解决这个问题。

2. ValueError: negative shift count

解决办法:这个是由于softmax参数设置造成的错误,之前softmax(dim=-1),将dim = 1就可以解决这个问题。

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐