Mojo function
conv_shape
conv_shape[input_type: DType, filter_type: DType, strides_type: DType, dilations_type: DType, paddings_type: DType, single_thread_blocking_override: Bool](input_buf: LayoutTensor[input_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], filter_buf: LayoutTensor[filter_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], strides_buf: LayoutTensor[strides_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], dilations_buf: LayoutTensor[dilations_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], paddings_buf: LayoutTensor[paddings_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], num_groups_scalar: Scalar[dtype]) -> IndexList[LayoutTensor[input_type, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment].rank]
Compute the output shape of a conv operation, and assert the inputs are compatible.
Parameters:
- input_type (
DType): Type of the input tensor. - filter_type (
DType): Type of the filter tensor. - strides_type (
DType): Type of the strides tensor. - dilations_type (
DType): Type of the dilations tensor. - paddings_type (
DType): Type of the paddings tensor. - single_thread_blocking_override (
Bool): If True, then the operation is run ssynchronouslysing a single thread. 
Args:
- input_buf (
LayoutTensor): The input tensor. - filter_buf (
LayoutTensor): The filter tensor. - strides_buf (
LayoutTensor): The strides tensor. - dilations_buf (
LayoutTensor): The dilations tensor. - paddings_buf (
LayoutTensor): The paddings tensor. - num_groups_scalar (
Scalar): The num_groups scalar. 
Returns:
IndexList: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!