include_logical_kernels.h#

namespace ONNX_LIGHT_NAMESPACE
namespace onnx_backend_test
namespace kernel
class And#
#include <include_logical_kernels.h>

Element-wise logical AND on BOOL tensors with multidirectional broadcasting.

Public Functions

inline explicit And(const KernelContext &ctx)#
Tensor operator()(const Tensor &x, const Tensor &y) const#
void operator()(const Tensor &x, const Tensor &y, Tensor &output) const#

Public Static Functions

static inline constexpr bool CanRunInPlace() noexcept#

Private Members

KernelContext ctx_#
class Greater#
#include <include_logical_kernels.h>

Element-wise Greater comparison on FLOAT tensors with multidirectional broadcasting. Inputs are FLOAT, the output is BOOL (one byte per element, 0 or 1). Mirrors the FLOAT branch of the upstream ONNX Greater reference implementation (np.greater).

Public Functions

inline explicit Greater(const KernelContext &ctx)#
Tensor operator()(const Tensor &x, const Tensor &y) const#
void operator()(const Tensor &x, const Tensor &y, Tensor &output) const#

Public Static Functions

static inline constexpr bool CanRunInPlace() noexcept#

Private Members

KernelContext ctx_#
class Less#
#include <include_logical_kernels.h>

Element-wise Less comparison on FLOAT tensors with multidirectional broadcasting. Inputs are FLOAT, the output is BOOL (one byte per element, 0 or 1). Mirrors the FLOAT branch of the upstream ONNX Less reference implementation (np.less).

Public Functions

inline explicit Less(const KernelContext &ctx)#
Tensor operator()(const Tensor &x, const Tensor &y) const#
void operator()(const Tensor &x, const Tensor &y, Tensor &output) const#

Public Static Functions

static inline constexpr bool CanRunInPlace() noexcept#

Private Members

KernelContext ctx_#
class Or#
#include <include_logical_kernels.h>

Element-wise logical OR on BOOL tensors with multidirectional broadcasting.

Public Functions

inline explicit Or(const KernelContext &ctx)#
Tensor operator()(const Tensor &x, const Tensor &y) const#
void operator()(const Tensor &x, const Tensor &y, Tensor &output) const#

Public Static Functions

static inline constexpr bool CanRunInPlace() noexcept#

Private Members

KernelContext ctx_#
class Xor#
#include <include_logical_kernels.h>

Element-wise logical XOR on BOOL tensors with multidirectional broadcasting.

Public Functions

inline explicit Xor(const KernelContext &ctx)#
Tensor operator()(const Tensor &x, const Tensor &y) const#
void operator()(const Tensor &x, const Tensor &y, Tensor &output) const#

Public Static Functions

static inline constexpr bool CanRunInPlace() noexcept#

Private Members

KernelContext ctx_#