Changelog#

[0.5.0] 2026-11-27#

Added#

  • Add Concatenate and Transpose operators

  • Add Slice, Concat and Transpose support to the ONNX inference runtime

  • Add the kernels property to modules, to set their kernel factory and get their kernels by kernel configuration

  • Add the config property to modules, to get the kernel configuration with which the module was created

  • Add the global cache (warp_nn.utils.cache), with functions to clear and disable/bypass it, where modules and ONNX runtime operations store their cached data, and the cache property to modules to access their own cache

  • Add overlap() utility to check whether the memory spans of two arrays overlap

  • Adapt the tiles and block dimension of the tiled kernels to the launched arrays (adaptive kernel configuration), and add the KernelConfig.adapt method and AdaptationPolicy class to adapt them for custom kernels

  • Add the batch_first argument to the RNN, GRU and LSTM modules, to process sequence-first (sequence_length, batch_size, features) input and output sequences

Changed#

  • Improve the performance of the RNN, GRU and LSTM modules (and their cell variants) and the ONNX inference runtime, by avoiding sequence layout conversions, final state copies and per-call parameter views, and by reducing the host overhead of unary element-wise operators

[0.4.1] - 2026-10-18#

Changed#

  • Update default kernel configuration for tiles of 1024 elements

  • Compile the CUDA kernels without the grid-stride loop: @wp.kernel(grid_stride=False)

Fixed#

  • Fix Asinh and Atanh to preserve the sign of zero (-0.0 input returns -0.0)

[0.4.0] - 2026-10-01#

Added#

  • Add Abs, Acos, Acosh, Add, Asin, Asinh, Atan, Atanh, AvgPool1D, AvgPool2D, BatchNorm, BitwiseAnd, BitwiseNot, BitwiseOr, BitwiseXor, Ceil, CELU, Clip, Cos, Cosh, Div, Dropout, Erf, Exp, Floor, GELU, GlobalAvgPool, GlobalMaxPool, GroupNorm, GRU, HardSigmoid, HardSwish, Identity, InstanceNorm, LayerNorm, Log, LogSoftmax, LSTM, Max, MaxPool1D, MaxPool2D, Min, Mish, Mul, Neg, Pow, PReLU, Reciprocal, RMSNorm, RNN, Round, Shrink, Sign, Sin, Sinh, Softmax, Sqrt, Sub, Swish, Tan and Threshold modules

  • Add Buffer class and module buffers (non-learnable state arrays, such as running statistics)

  • Add training/evaluation modes to modules (training property, and train() and eval() methods)

  • Add the requires_grad constructor argument to modules that own parameters and/or cached output arrays, to control whether those arrays require gradients

  • Add the initialize_parameters constructor argument to layers that own parameters, to control whether those parameters are initialized with their default/initial values

  • Add copy() utility to copy (possibly non-contiguous) arrays with gradient propagation

Changed#

  • Update the minimum required Warp version to 1.15.0

  • Update default kernel configuration for tile dimensions

  • Update OnnxRuntime ONNX inference runtime to use the implemented modules as ONNX operators. Mark the batch_size and input_batch_axes constructor arguments as deprecated in favor of OnnxRuntime.prepare() method, and the input_names, output_names and _shapes attributes as deprecated in favor of OnnxRuntime.inputs and OnnxRuntime.outputs properties

Changed (breaking changes)#

  • Rename SoftPlus and SoftSign activations to Softplus and Softsign respectively

  • Move Tanh activation definition to operators

Fixed#

  • Fix crash when calling a module after moving it to another device (the cached arrays were not reallocated)

  • Fix optimizers’ CUDA graph capture and kernel-sharing bugs: first step()/clip_by_total_norm() call, gradient clipping, and per-optimizer eps/max_norm handling

  • Fix numerical issues of activations: ReLU did not propagate NaN inputs, Sigmoid yielded NaN gradients for large negative inputs, and Softplus overflowed (with NaN gradients) for large positive inputs

  • Fix NaN gradients of GRUCell and LSTMCell for saturated gates (large negative pre-activations)

  • Fix wrong gradients of LSTMCell with respect to its hidden state output

  • Fix kernel_config() resetting the unspecified values to None (instead of keeping the enclosing/default ones)

[0.3.1] - 2026-07-28#

Changed#

  • Update the ONNX inference runtime to include opt-in support for gradient propagation

[0.3.0] - 2026-07-03#

Added#

  • Add graph-capturable OnnxRuntime ONNX inference runtime

[0.2.0] - 2026-05-23#

Added#

  • Add Flatten layer

[0.1.0] - 2026-04-08#

Added#

  • Initial release