What does the * signify when creating Sequential?

self.fcVar = nn.Sequential(*[nn.Linear(output_ndf, output_nc)])

What does the * signify in this line of code when creating a network?
Thanks for the help in advance.

Hi,

This is a python construct.
It can be used to unpack the elements of a list or tuple into positional arguments for the function:

def foo(a, b):
    return a + b

data = [1, 2]
foo(data) # Error as a single argument is given
foo(*data) # Works

Thanks for the reply mate! Have you by any chance read the BicycleGAN paper? It would be great if you could clear some issues of mine.

I haven’t sorry.
But you can try to open a new topic and ask your question. Maybe someone more knowledgeable will :slight_smile:

Sure mate! Thanks a lot.