def __init__(self, depth):
    super(One_Hot, self).__init__()
    self.depth = depth
    self.ones = torch.sparse.torch.eye(depth).cuda()
def __init__(self, depth):
    super(One_Hot, self).__init__()
    self.depth = depth
    self.ones = torch.sparse.torch.eye(depth).cuda()