Learn R Programming

ggmlR (version 0.6.1)

nn_build_global_max_pooling_2d: Build global_max_pooling_2d forward pass

Description

Tensor layout in ggml (column-major): [W, H, C, N]. Pool the entire spatial extent (k0=W, k1=H), then reshape [1,1,C,N]->[C,N].

Usage

nn_build_global_max_pooling_2d(ctx, input_tensor, layer)

Arguments