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 Acos#
- #include <include_math_kernels.h>
Element-wise arc cosine: y = acos(x), with x in [-1, 1] and y in [0, pi].
Public Functions
-
inline explicit Acos(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 Acos(const KernelContext &ctx)#
-
class Acosh#
- #include <include_math_kernels.h>
Element-wise inverse hyperbolic cosine: y = acosh(x), with x >= 1.
Public Functions
-
inline explicit Acosh(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 Acosh(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 Div#
- #include <include_math_kernels.h>
Element-wise division with NumPy-style broadcasting.
Public Functions
-
inline explicit Div(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 Div(const KernelContext &ctx)#
-
class Mul#
- #include <include_math_kernels.h>
Element-wise multiplication with NumPy-style broadcasting.
Public Functions
-
inline explicit Mul(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 Mul(const KernelContext &ctx)#
-
class Sub#
- #include <include_math_kernels.h>
Element-wise subtraction with NumPy-style broadcasting.
Public Functions
-
inline explicit Sub(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 Sub(const KernelContext &ctx)#
-
class Abs#
-
namespace kernel
-
namespace onnx_backend_test