kernel_context.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
namespace kernel
-
struct KernelContext#
- #include <kernel_context.h>
Construction-time context passed to backend test kernel classes.
Kernels are implemented as classes whose constructor takes a single
KernelContextargument. The context bundles the opset against which the kernel must behave so the same kernel class can specialize its computation (or perform opset-specific validation) without changing its call sites.Only the
opsetfield is exposed today; new construction-time inputs (for example a device descriptor or an allocator) can be added later as additional fields without breaking existing kernel classes.
-
struct KernelContext#
-
namespace kernel
-
namespace onnx_backend_test