Skip to main content

ClikaRT::ops::copy_to_cpu

function

copy_to_cpu()

Tensor copy_to_cpu(Tensor src)

Materializes a host-resident copy of the tensor (device-to-host transfer; an owning CPU tensor even when src is already on the CPU).

Throws

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

Returns: the CPU-resident copy.

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