Skip to main content

ClikaRT::ops::expand_as

function

expand_as()

Tensor expand_as(Tensor x, Tensor other)

expand to other's shape; other supplies extents only; its data is never read. Same broadcasting rules and view semantics as expand.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when a non-1 input dim mismatches other's (code_name() carries the reason).

Returns: a view of x shaped like other.

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