▪ Insert 1 dim ahead
▪ Expand dims with size 1 to same size
▪ Feature maps: [4, 32, 14, 14]
▪ Bias: [32, 1, 1] => [1, 32, 1, 1] => [4, 32, 14, 14]
Situation 1:
▪ [4, 32, 14, 14]
▪ [1, 32, 1, 1] => [4, 32, 14, 14]
Situation 2
▪ [4, 32, 14, 14]
▪ [14, 14] => [1, 1, 14, 14] => [4, 32, 14, 14]
Situation 3
▪ [4, 32, 14, 14]
▪ [2, 32, 14, 14]
▪ Dim 0 has dim, can NOT insert and expand to same
▪ Dim 0 has distinct dim, NOT size 1
▪ NOT broadcasting-able
When it has no dim
▪ treat it as all own the same
▪ [class, student, scores] + [scores]
▪ When it has dim of size 1
▪ Treat it shared by all
▪ [class, student, scores] + [student, 1]
It’s effective and critically, intuitive
▪ [4, 3, 32, 32]
▪ + [32, 32]
▪ + [3, 1, 1]
▪ + [1, 1, 1, 1]
floor() ceil() round() trunc() ,frac()