docstr: Returns self != y
docstr_tok: ["Returns","self","!","=","y"]
code: def ne(self, y):
      """Returns self != y"""
      if comm.get().get_world_size() == 2:
          return 1 - self.eq(y)
  
      difference = self - y
      difference.share = torch_stack(
          [difference.share, -(difference.share)]
      )
      return difference._ltz().sum(0)
  
imports: import torch
  from crypten import communicator
  from crypten.common.tensor_types import is_tensor
  from crypten.common.util import torch_stack
  from crypten.config import cfg
  from crypten.cuda import CUDALongTensor
  from ..cryptensor import CrypTensor
  from ..encoder import FixedPointEncoder
  from .primitives.binary import BinarySharedTensor
  from .primitives.converters import convert
  from .ptype import ptype
label_desc: Use image node_id 24 for calling the MPCTensor obj's underlying member method code with example usage: obj.ne(y) and returns: difference, unknown