Skip to main content

ClikaRT::ops::clone

function

clone()

Tensor clone(Tensor src)

Deep copy on the same device: fresh storage, identical shape, dtype, and values. Equivalent to copy(src) with the defaults.

Throws

  • ClikaRT::Error: when the input's dtype/shape is not served for this operation (the machine-readable reason rides code_name()).

Returns: the owning copy.

Declared in ClikaRT/compute/ops.h, line 2007