Skip to contents

Extracts values from a tensor at positions corresponding to nonzero entries of a mask tensor.

Usage

mask(x, w, ...)

Arguments

x

A Tensor object.

w

A Tensor-like mask.

...

Additional arguments passed to methods.

Value

A vector of extracted values.