memory_format: a torch memory format. see torch_preserve_format().
Note
This function is differentiable, so gradients will flow back from the result of this operation to input. To create a tensor without an autograd relationship to input see Tensor$detach.