Thank you so much @ptrblck. Your solution worked. Now my model is not accepting my inputs tensor shape. It is throwing following error.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-31-84d3b7e54446> in <module>()
     44         # here: 178 samples, batch_size = 4, n_iters=178/4=44.5 -> 45 iterations
     45         model = PhysNet_padding_Encoder_Decoder_MAX(frames=128)
---> 46         rPPG, x_visual, x_visual3232, x_visual1616 = model(inputs)

1 frames
<ipython-input-23-fe7087e31db6> in forward(self, x)
     85     def forward(self, x):               # x [3, T, 128,128]
     86         x_visual = x
---> 87         [batch,channel,length,width,height] = x.shape
     88 
     89         x = self.ConvBlock1(x)               # x [3, T, 128,128]

ValueError: not enough values to unpack (expected 5, got 4)