Buffer#
API#
- class warp_nn.modules.buffer.Buffer(data: array, *, requires_grad: bool = False)[source]#
Bases:
objectClass representing a non-learnable state array (e.g. running statistics).
Unlike parameters, buffers are not optimized, but they are included in the module’s state dictionary and moved along with the module.
Note
All buffers in a
Moduleare of theBuffertype.- Parameters:
data – The underlying data container (array) of the buffer.
requires_grad – Whether the buffer requires gradients.