hi!
Thanks for your reply.
Suppose I have a image. At first I should extract patches. then flatten each patch and then take samples. (SR is my sampling rate) now I should find a conv layer that reconstructs my sampled data.
image839×245 35.8 KB
In this figure, b refers to the block size and (hb) and (wb) denotes the height and width of the frame.
First, the original frame is reshaped into a tensor of size h×w×(b·b). Then Conv_phi layer senses each block and outputs a measurement tensor of size h×w×(b·b). The kernel size of Conv_phi layer is 1×1×(b·b). The red parts represent a block and its corresponding measurement vector.
now I don’t know how to code this part 

I should use conv3? conv2d?
I cant code it