Skip to main content

ClikaRT::ops::reshape

function

reshape()

Tensor reshape(Tensor x, ClikaRT::Span<const IndexBound> shape)

Reshape to shape; one entry may be -1 to infer it from the element count. A dim entry is an int literal OR a 0-D/1-D integer Tensor (IndexBound); e.g. reshape(x, {shape_host(x, 1), d}) composes without reading sizes to the host.

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