include_nn_kernels.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
namespace kernel
-
class AveragePool#
- #include <include_nn_kernels.h>
N-D average pooling on a FLOAT tensor laid out as
(N, C, D1, ..., Dk).kernel_shapemust havekentries;stridesandpads(lengthskand2 * krespectively) default to all-ones and all-zeros when omitted.Public Functions
-
inline explicit AveragePool(const KernelContext &ctx)#
-
Tensor operator()(const Tensor &x, const std::vector<int64_t> &kernel_shape, const std::vector<int64_t> &strides = {}, const std::vector<int64_t> &pads = {}, bool ceil_mode = false, bool count_include_pad = false) const#
All attributes explicit.
stridesmay be empty (treated as all 1) andpadsmay be empty (treated as all 0).
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Output shape generally differs from the input shape, so the output buffer cannot in general alias the input buffer.
Private Members
-
KernelContext ctx_#
-
inline explicit AveragePool(const KernelContext &ctx)#
-
class AveragePool#
-
namespace kernel
-
namespace onnx_backend_test