(self, a, stochastic=True, out=None)
return OpTreeNode.build("binarize", a, None, stochastic=stochastic, out=out)
Perform element-wise binarization.

        Arguments:
            a (Tensor): input to be transformed.
            stochastic (Bool, optional): stochastic or deterministic
            out (Tensor, optional): where the result will be stored. If out is
                                    None, only the op-tree will be returned.

        Returns:
            OpTreeNode: the resulting op-tree
Perform element-wise binarization.
Perform element - wise binarization .
def binarize(self, a, stochastic=True, out=None):
        """
        Perform element-wise binarization.

        Arguments:
            a (Tensor): input to be transformed.
            stochastic (Bool, optional): stochastic or deterministic
            out (Tensor, optional): where the result will be stored. If out is
                                    None, only the op-tree will be returned.

        Returns:
            OpTreeNode: the resulting op-tree
        """
        return OpTreeNode.build("binarize", a, None, stochastic=stochastic, out=out)
def binarize ( self , a , stochastic = True , out = None ) : return OpTreeNode . build ( "binarize" , a , None , stochastic = stochastic , out = out )