Table of Contents

Struct ILKernelGenerator.ReduceKernelKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Cache key for a per-chunk reduction kernel: operation + input dtype + accumulator (output) dtype. Layout is handled at runtime inside the kernel body (pinned vs slab, contiguous vs strided inner loop), so it is NOT part of the key.

public readonly record struct ILKernelGenerator.ReduceKernelKey : IEquatable<ILKernelGenerator.ReduceKernelKey>
Implements
Inherited Members
Extension Methods

Constructors

ReduceKernelKey(ReductionOp, NPTypeCode, NPTypeCode)

Cache key for a per-chunk reduction kernel: operation + input dtype + accumulator (output) dtype. Layout is handled at runtime inside the kernel body (pinned vs slab, contiguous vs strided inner loop), so it is NOT part of the key.

public ReduceKernelKey(ReductionOp Op, NPTypeCode InType, NPTypeCode AccType)

Parameters

Op ReductionOp
InType NPTypeCode
AccType NPTypeCode

Properties

AccType

public NPTypeCode AccType { get; init; }

Property Value

NPTypeCode

InType

public NPTypeCode InType { get; init; }

Property Value

NPTypeCode

Op

public ReductionOp Op { get; init; }

Property Value

ReductionOp