In PyTorch, people usually call tensor.permute(2,0,1,3).contiguous(). If I call this function in tensorflow 2.0, is it enough to just call tf.reshape(tensor, perm = [2, 0, 1, 3])?
or what is a contiguous function in tensorflow 2.0?
In PyTorch, people usually call tensor.permute(2,0,1,3).contiguous(). If I call this function in tensorflow 2.0, is it enough to just call tf.reshape(tensor, perm = [2, 0, 1, 3])?
or what is a contiguous function in tensorflow 2.0?