import torch


def split_tensor_pos(tensor):
    """ Splits tensor into positive and negative terms """
    zeros_like = torch.zeros_like(tensor)
    pos_tensor = torch.max(tensor, zeros_like)
    neg_tensor = torch.min(tensor, zeros_like)

    return pos_tensor, neg_tensor