Class HeadCacheOps
java.lang.Object
io.github.kirstenali.deepj.tensor.HeadCacheOps
Inference-only storage operations for head-major key/value caches.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tensorprefix(TensorBackend backend, Tensor cache, int heads, int length) static voidrequirePrefix(Tensor cache, int heads, int length) static voidrequireWrite(Tensor cache, Tensor update, int heads, int offset) static voidwriteLayouts(TensorBackend backend, Tensor cache, Tensor update, int heads, int offset)
-
Method Details
-
requireWrite
-
requirePrefix
-
writeLayouts
public static void writeLayouts(TensorBackend backend, Tensor cache, Tensor update, int heads, int offset) -
prefix
-