ClikaRT::nn::PairwiseDistance
class
Header: ClikaRT/nn/generated/distance.h
Inherits: ClikaRT::nn::Module
The p-norm of x1 - x2 + eps over the last axis, with broadcasting of the leading dimensions. The module form of ClikaRT::ops::pairwise_distance, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
PairwiseDistance(PairwiseDistanceOptions)
explicit PairwiseDistance(PairwiseDistanceOptions options = {})
Constructs the module from options (every default when omitted).
Declared in ClikaRT/nn/generated/distance.h, line 141
PairwiseDistance(Scalar)
explicit PairwiseDistance(Scalar p)
PairwiseDistance(p): the positional form of PairwiseDistanceOptions(p).
Declared in ClikaRT/nn/generated/distance.h, line 145
forward()
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/distance.h, line 158
operator()()
Same as forward.
Declared in ClikaRT/nn/generated/distance.h, line 162
options()
const PairwiseDistanceOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/distance.h, line 166