!5758 fix arg or hub in resnet

Merge pull request !5758 from zhouyaqiang0/master
This commit is contained in:
mindspore-ci-bot 2020-09-17 19:48:36 +08:00 committed by Gitee
commit e03e087079
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
"""hub config."""
from src.resnet import resnet50, resnet101, se_resnet50
def create_network(name, **kwargs):
def create_network(name, *args, **kwargs):
if name == 'resnet50':
return resnet50(*args, **kwargs)
if name == 'resnet101':