import torch
import torch.nn as nn

class Model(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
        abs_diff = torch.abs(x - y)
        abs_sum = torch.abs(x) + torch.abs(y)
        return torch.sum(abs_diff / (abs_sum + 1e-12), dim=1)

batch_size = 1024
feature_dim = 4096

def get_inputs():
    x = torch.randn(batch_size, feature_dim, dtype=torch.float32)
    y = torch.randn(batch_size, feature_dim, dtype=torch.float32)
    return [x, y]

def get_init_inputs():
    return []