|
Mila
Deep Neural Network Library
|
The GQA transient the attention layers of one stack share, owned as one unit. More...
Public Types | |
| using | MR = typename DeviceTypeTraits<TDeviceType>::memory_resource |
| using | TensorType = Tensor<TPrecision, MR> |
Public Member Functions | |
| std::size_t | deviceStorageBytes () const |
| GqaState | state () const |
The GQA transient the attention layers of one stack share, owned as one unit.
Owned together rather than as seven loose tensors so a caller cannot allocate half of it: GqaState is a struct of raw pointers, and a null one is a crash at the kernel rather than an error at the call.