ding.utils.loader.norm¶
ding.utils.loader.norm
¶
INormClass
¶
Overview
The norm class.
Interfaces:
__call__, __add__, __radd__, __sub__, __rsub__, __mul__, __rmul__, __matmul__,
__rmatmul__, __truediv__, __rtruediv__, __floordiv__, __rfloordiv__, __mod__,
__rmod__, __pow__, __rpow__, __lshift__, __rlshift__, __rshift__, __rrshift__,
__and__, __rand__, __or__, __ror__, __xor__, __rxor__, __invert__, __pos__,
__neg__, __eq__, __ne__, __lt__, __le__, __gt__, __ge__
__call__(value)
¶
Overview
Call the norm.
Arguments:
- value (:obj:Any): The value to be normalized.
__add__(other)
¶
Overview
Add the norm.
Arguments:
- other (:obj:Any): The other norm.
__radd__(other)
¶
Overview
Add the norm.
Arguments:
- other (:obj:Any): The other norm.
__sub__(other)
¶
Overview
Subtract the norm.
Arguments:
- other (:obj:Any): The other norm.
__rsub__(other)
¶
Overview
Subtract the norm.
Arguments:
- other (:obj:Any): The other norm.
__mul__(other)
¶
Overview
Multiply the norm.
Arguments:
- other (:obj:Any): The other norm.
__rmul__(other)
¶
Overview
Multiply the norm.
Arguments:
- other (:obj:Any): The other norm.
__matmul__(other)
¶
Overview
Matrix multiply the norm.
Arguments:
- other (:obj:Any): The other norm.
__rmatmul__(other)
¶
Overview
Matrix multiply the norm.
Arguments:
- other (:obj:Any): The other norm.
__truediv__(other)
¶
Overview
Divide the norm.
Arguments:
- other (:obj:Any): The other norm.
__rtruediv__(other)
¶
Overview
Divide the norm.
Arguments:
- other (:obj:Any): The other norm.
__floordiv__(other)
¶
Overview
Floor divide the norm.
Arguments:
- other (:obj:Any): The other norm.
__rfloordiv__(other)
¶
Overview
Floor divide the norm.
Arguments:
- other (:obj:Any): The other norm.
__mod__(other)
¶
Overview
Mod the norm.
Arguments:
- other (:obj:Any): The other norm.
__rmod__(other)
¶
Overview
Mod the norm.
Arguments:
- other (:obj:Any): The other norm.
__pow__(power, modulo=None)
¶
Overview
Power the norm.
Arguments:
- power (:obj:Any): The power.
- modulo (:obj:Any): The modulo.
__rpow__(other)
¶
Overview
Power the norm.
Arguments:
- other (:obj:Any): The other norm.
__lshift__(other)
¶
Overview
Lshift the norm.
Arguments:
- other (:obj:Any): The other norm.
__rlshift__(other)
¶
Overview
Lshift the norm.
Arguments:
- other (:obj:Any): The other norm.
__rshift__(other)
¶
Overview
Rshift the norm.
Arguments:
- other (:obj:Any): The other norm.
__rrshift__(other)
¶
Overview
Rshift the norm.
Arguments:
- other (:obj:Any): The other norm.
__and__(other)
¶
Overview
And operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__rand__(other)
¶
Overview
And operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__or__(other)
¶
Overview
Or operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__ror__(other)
¶
Overview
Or operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__xor__(other)
¶
Overview
Xor operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__rxor__(other)
¶
Overview
Xor operation the norm.
Arguments:
- other (:obj:Any): The other norm.
__invert__()
¶
Overview
Invert the norm.
__pos__()
¶
Overview
Positive the norm.
__neg__()
¶
Overview
Negative the norm.
__eq__(other)
¶
Overview
Compare the norm if they are equal.
Arguments:
- other (:obj:Any): The other norm.
__ne__(other)
¶
Overview
Compare the norm if they are not equal.
Arguments:
- other (:obj:Any): The other norm.
__lt__(other)
¶
Overview
Compare the norm if it is less than the other norm.
Arguments:
- other (:obj:Any): The other norm.
__le__(other)
¶
Overview
Compare the norm if it is less than or equal to the other norm.
Arguments:
- other (:obj:Any): The other norm.
__gt__(other)
¶
Overview
Compare the norm if it is greater than the other norm.
Arguments:
- other (:obj:Any): The other norm.
__ge__(other)
¶
Overview
Compare the norm if it is greater than or equal to the other norm.
Arguments:
- other (:obj:Any): The other norm.
norm(value)
¶
Overview
Convert value to norm.
Arguments:
- value (:obj:Any): The value to be converted.
normfunc(func)
¶
Overview
Convert function to norm function.
Arguments:
- func (:obj:Callable[[Any], Any]): The function to be converted.
lcmp(first, *items)
¶
Overview
Compare the items.
Arguments:
- first (:obj:Any): The first item.
- items (:obj:Any): The other items.
Full Source Code
../ding/utils/loader/norm.py