([*rand_pad(...)], []), why need to wrap rand_pad with [ ]?

(chansung park) #1

I am watching the lecture #7.

In the lecture there is a statement
tfms = ([*rand_pad(padding=3, size=28, mode='zeros')], [])

The result seems identical with
tfms = (rand_pad(padding=3, size=28, mode='zeros'), [])

What is the difference, and why do * and [ ... ] are needed here?

1 Like