include_math_kernels.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
namespace kernel
-
class Abs#
- #include <include_math_kernels.h>
Element-wise absolute value.
Public Functions
-
inline explicit Abs(const KernelContext &ctx)#
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Element-wise unary kernel: the output buffer may alias the input buffer.
Private Members
-
KernelContext ctx_#
-
inline explicit Abs(const KernelContext &ctx)#
-
class Add#
- #include <include_math_kernels.h>
Element-wise addition with NumPy-style broadcasting.
Public Functions
-
inline explicit Add(const KernelContext &ctx)#
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Element-wise binary kernel: the output buffer may alias an input buffer when that input is not broadcast-expanded (i.e. its shape equals the output shape).
Private Members
-
KernelContext ctx_#
-
inline explicit Add(const KernelContext &ctx)#
-
class BlackmanWindow#
- #include <include_math_kernels.h>
BlackmanWindow function evaluated at
sizeinteger samples. Whenperiodicis true the window is computed as if of lengthsize+1and the last sample is discarded (matches NumPy/ONNX conventions).Public Functions
-
inline explicit BlackmanWindow(const KernelContext &ctx)#
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Output is a float vector while the input is an int scalar: storage can never be shared with an input.
Private Members
-
KernelContext ctx_#
-
inline explicit BlackmanWindow(const KernelContext &ctx)#
-
class Abs#
-
namespace kernel
-
namespace onnx_backend_test