For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
Fold
struct Fold
Registers the fold graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[dtype: DType, stride_h: Int, stride_w: Int, dilation_h: Int, dilation_w: Int, padding_h: Int, padding_w: Int, target: StringSlice[ImmStaticOrigin]](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec], output_size: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=output_size.static_spec], kernel_size: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=kernel_size.static_spec], ctx: DeviceContext)