Method countTrueTensor
static member countTrueTensor: Tensor<bool> -> Tensor<int64>
Counts the elements being true returning the result as a Tensor.
Declaration
static member countTrueTensor: src:Tensor<bool> -> Tensor<int64>
Parameters
Type | Name | Description |
---|---|---|
Tensor<bool> | src | The tensor containing the source values. |
Returns
Type | Description |
---|---|
Tensor<int64> | A new scalar tensor containing the result of this operation. |