blob: 67a7a5479fae9ec97556478e8ec2cf8e7fd44354 [file] [log] [blame]
from ... import Tensor
from .module import Module
class PairwiseDistance(Module):
norm: float
eps: float
keepdim: bool
def __init__(self, p: float = ..., eps: float = ..., keepdim: bool = ...) -> None: ...
def forward(self, x1: Tensor, x2: Tensor) -> Tensor: ...
class CosineSimilarity(Module):
dim: int
eps: float
def __init__(self, dim: int = ..., eps: float = ...) -> None: ...
def forward(self, x1: Tensor, x2: Tensor) -> Tensor: ...