modeci_mdf.functions.onnx.compress

modeci_mdf.functions.onnx.compress(*args, **kwargs)

Selects slices from an input tensor along a given axis where condition evaluates to True for each axis index. In case axis is not provided, input is flattened before elements are selected. Compress behaves like numpy.compress: https://docs.scipy.org/doc/numpy/reference/generated/numpy.compress.html