% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
%   R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_clone}
\alias{torch_clone}
\title{Clone}
\usage{
torch_clone(self, memory_format = NULL)
}
\arguments{
\item{self}{(Tensor) the input tensor.}

\item{memory_format}{a torch memory format. see \code{\link[=torch_preserve_format]{torch_preserve_format()}}.}
}
\description{
Clone
}
\note{
This function is differentiable, so gradients will flow back from the
result of this operation to \code{input}. To create a tensor without an
autograd relationship to \code{input} see \code{Tensor$detach}.
}
\section{clone(input, *, memory_format=torch.preserve_format) -> Tensor }{


Returns a copy of \code{input}.
}

