提交 00fb3f75 编写于 作者: G gaotingquan 提交者: Tingquan Gao

feat: support PVTV2

上级 a53b6368
...@@ -45,6 +45,7 @@ MODEL_URLS = { ...@@ -45,6 +45,7 @@ MODEL_URLS = {
__all__ = list(MODEL_URLS.keys()) __all__ = list(MODEL_URLS.keys())
@paddle.jit.not_to_static
def swapdim(x, dim1, dim2): def swapdim(x, dim1, dim2):
a = list(range(len(x.shape))) a = list(range(len(x.shape)))
a[dim1], a[dim2] = a[dim2], a[dim1] a[dim1], a[dim2] = a[dim2], a[dim1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册