bytewiseAll

fun bytewiseAll(operand: Tensor, result: Tensor)

Perform a byte-wise all on all the values constituting the tensor.

Parameters

operand

the tensor as input.

result

the tensor must have one value only. The value will be written as zero if the all operation produces "false", i.e., not all bytes are non-zero. Otherwise, if all bytes of the operand are non-zero, the result is evaluated as true so the value of the result tensor will be written as non-zero. Additionally, the data type of the result must be of integral types. The result tensor cannot be a scene graph tensor.

Throws

If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.