Skip to main content

ClikaRT::ops::broadcast_to

function

broadcast_to()​

Tensor broadcast_to(Tensor input, ClikaRT::Span<const ScalarOrTensor> shape)

Alias of expand under the NumPy name; same broadcasting rules, same view semantics.

Throws

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

Returns: a view of input with the requested shape.

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