API symbolsnnCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.nn.functional.pixel_shuffle tensorplay.nn.functional.pixel_shuffle(input: TensorBase, upscale_factor: int) → TensorBase[source] Rearranges elements in a tensor of shape (*, C x r^2, H, W) to a tensor of shape (*, C, H x r, W x r). Port of aten::pixel_shuffle: output[n, c, h*r+i, w*r+j] = input[n, c*r^2 + i*r + j, h, w]. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.nn.functional.pdistComputes the pairwise distance between rows of input .tensorplay.nn.functional.pixel_unshuffleReverses the pixel_shuffle() transformation: (*, C, H x r, W x r) -> (*, C x r^2, H, W) .