0

i was reading a Deep-Learning paper and their github repo and i was having trouble understanding how multiply operator works in two lines of their codes.

 alpha_size = tuple((len(x), *(1,)*(x.dim()-1)))

I guess the second one means multiply but what does the first one do as it is ahead of a tuple.

alpha = alpha_t(*alpha_size).uniform_()

same thing happens here as well. They used a multiply operator before a tuple. Can anyone explain? This is new to me. Thank you.

VD26
  • 116
  • 2
  • 11

0 Answers0