you mean that you get error from the code? would you please tell me what do you mean by it is not working?
I apply it and did not get any error. before layer6 (self.l6)  bachsize=10, channel=16, depth=11, height=11, width=11, after that I get (10,1,11,11,11) as output.
My aim is to generate 3d patches as 10x1x11x11x11
input is a noise 10x11x1x1x1 which will be concatenated with the Labels and will be 10x12x1x1x1 as the first layer input (1x11x1x1x1 is wrong)