alameer:

model=VGG((*args, **kwargs))


This should be VGG(*args, **kwargs). I’m noticing that you don’t have kwargs defined however. Args should be a list or tuple of values. Kwargs should be a dictionary.
Here’s an example of how to use the * operator:
args = (a, b, c)
kwargs = {'x': 1, 'y': 1}

# These two lines are equivalent 
Model(*args, **kwargs)
Model(a, b, c, x=1, y=1)