conv#
- class saiunit.lax.conv(x, y, window_strides, padding, precision=None, preferred_element_type=None, **kwargs)#
Convenience wrapper around
conv_general_dilated.- Parameters:
x (
Union[Array,ndarray,number,bool, saiunit.Quantity]) – A rankn+2dimensional input array (lhs).y (
Union[Array,ndarray,number,bool, saiunit.Quantity]) – A rankn+2dimensional array of kernel weights (rhs).window_strides (
Sequence[int]) – A sequence ofnintegers representing the inter-window strides.padding (
str) – Either'SAME'or'VALID'.precision (
Union[None,str,Precision,tuple[str,str],tuple[Precision,Precision],DotAlgorithm,DotAlgorithmPreset]) – EitherNone(default precision), aPrecisionenum value, or a tuple of two such values forlhsandrhs.preferred_element_type (
Union[str,type[Any],dtype,SupportsDType,None]) – The accumulation and result dtype.Nonemeans use the default.
- Returns:
out – An array containing the convolution result.
- Return type:
Union[saiunit.Quantity,Array]