Change size of a tensor

how can convert a tensor with size[3,1000] to a tensor with size[128, 512, 3, 3]?

You cannot directly convert a tensor in the first shape to the second one, since the number of elements is different (3000 vs. 589824), so you would have to increase the size somehow (e.g. via upsampling/interpolation, transposed convolutions etc.).