Skip to main content

Mojo function

get_conv2d_shape

get_conv2d_shape[output_shape: DimList, input_shape: DimList, filter_shape: DimList, dtype: DType, data_layout: Image2DLayout, filter_layout: Image2DLayout](output: NDBuffer[dtype, 4, origin, output_shape], input: NDBuffer[dtype, 4, origin, input_shape], filter: NDBuffer[dtype, 4, origin, filter_shape], pad_h: IndexList[2], pad_w: IndexList[2], stride: IndexList[2], dilation: IndexList[2], num_groups: Int) -> ConvShape[2]

get_conv2d_shape[filter_rank: Int, output_shape: DimList, input_shape: DimList, filter_shape: DimList, dtype: DType, data_layout: Image2DLayout, filter_layout: Image2DLayout](output: NDBuffer[dtype, 4, origin, output_shape], input: NDBuffer[dtype, 4, origin, input_shape], filter: NDBuffer[dtype, filter_rank, origin, filter_shape], pad_h: IndexList[2], pad_w: IndexList[2], stride: IndexList[2], dilation: IndexList[2], num_groups: Int) -> ConvShape[2]

get_conv2d_shape[output_layout: Layout, input_layout: Layout, filter_layout_param: Layout, dtype: DType, data_layout: Image2DLayout, filter_layout: Image2DLayout](output: LayoutTensor[dtype, output_layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], input: LayoutTensor[dtype, input_layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], filter: LayoutTensor[dtype, filter_layout_param, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], pad_h: IndexList[2], pad_w: IndexList[2], stride: IndexList[2], dilation: IndexList[2], num_groups: Int) -> ConvShape[2]

Was this page helpful?