feat: support PVTV2

pull/1632/head
gaotingquan 2021-12-13 07:15:49 +00:00 committed by Tingquan Gao
parent a53b636829
commit 00fb3f7519
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ MODEL_URLS = {
__all__ = list(MODEL_URLS.keys())
@paddle.jit.not_to_static
def swapdim(x, dim1, dim2):
a = list(range(len(x.shape)))
a[dim1], a[dim2] = a[dim2], a[dim1]