Uses of Class
io.github.kirstenali.deepj.tensor.GpuBuffer
Packages that use GpuBuffer
-
Uses of GpuBuffer in io.github.kirstenali.deepj.tensor
Methods in io.github.kirstenali.deepj.tensor that return GpuBufferModifier and TypeMethodDescriptionComputeGraph.ensureGpuBuffer(Tensor t) Ensure a tensor has a GpuBuffer.ComputeGraph.newOutputBuffer(int rows, int cols) Allocate a new output buffer (result of a GPU op).Methods in io.github.kirstenali.deepj.tensor with parameters of type GpuBufferModifier and TypeMethodDescriptionvoidComputeGraph.bindTensorToBuffer(Tensor t, GpuBuffer buf) Rebind an existing tensor to a GPU buffer and track ownership for lifecycle management.ComputeGraph.createOutputTensor(GpuBuffer buf) Create a Tensor backed by a GpuBuffer.voidComputeGraph.recordAdamWUpdate(GpuBuffer w, GpuBuffer g, GpuBuffer mt, GpuBuffer vt, float lr, float beta1, float beta2, float eps, float weightDecay, float bc1, float bc2, int n) Record in-place AdamW update: [OP_ADAMW_UPDATE, wId, gId, mtId, vtId, lrBits, beta1Bits, beta2Bits, epsBits, weightDecayBits, bc1Bits, bc2Bits, n]voidComputeGraph.recordBinary(int opCode, GpuBuffer a, GpuBuffer b, GpuBuffer out) Record a binary element-wise op: [opCode, aId, bId, outId, n]voidComputeGraph.recordClamp(GpuBuffer in, GpuBuffer out, float min, float max) Record clamp: [OP_CLAMP, inId, outId, minBits, maxBits, n]voidComputeGraph.recordColBroadcast(int opCode, GpuBuffer a, GpuBuffer colVec, GpuBuffer out, int rows, int cols) Record col broadcast: [opCode, aId, colVecId, outId, rows, cols]voidComputeGraph.recordCrossEntropyGradient(GpuBuffer logits, GpuBuffer targets, GpuBuffer out, int rows, int cols) Record cross-entropy gradient: [OP_CROSS_ENTROPY_GRADIENT, logitsId, targetsId, outId, rows, cols]voidComputeGraph.recordCrossEntropyLoss(GpuBuffer logits, GpuBuffer targets, GpuBuffer out, int rows, int cols) Record cross-entropy row losses: [OP_CROSS_ENTROPY_LOSS, logitsId, targetsId, outId, rows, cols]voidComputeGraph.recordLayerNormBackward(GpuBuffer dXHat, GpuBuffer xHat, GpuBuffer std, GpuBuffer out, int rows, int cols) Record layer norm backward: [OP_LAYERNORM_BACKWARD, dXHatId, xHatId, stdId, outId, rows, cols]voidComputeGraph.recordMatmul(GpuBuffer a, GpuBuffer b, GpuBuffer out, int m, int n, int k) Record matmul: [OP_MATMUL, aId, bId, outId, m, n, k]voidComputeGraph.recordMultiplyScalar(GpuBuffer in, GpuBuffer out, float scalar) Record scalar multiply: [OP_MULTIPLY_SCALAR, inId, outId, scalarBits, n]voidRecord pow: [OP_POW, inId, outId, exponentBits, n]voidComputeGraph.recordReduction(int opCode, GpuBuffer in, GpuBuffer out, int rows, int cols) Record row/col reduction: [opCode, inId, outId, rows, cols]voidComputeGraph.recordRowBroadcast(int opCode, GpuBuffer a, GpuBuffer rowVec, GpuBuffer out, int rows, int cols) Record row broadcast: [opCode, aId, rowVecId, outId, rows, cols]voidComputeGraph.recordScalarUnary(int opCode, GpuBuffer in, GpuBuffer out, float scalar) Record scalar add/divide: [opCode, inId, outId, scalarBits, n]voidComputeGraph.recordScatterAddRows(GpuBuffer target, GpuBuffer indices, GpuBuffer grad, int targetRows, int targetCols, int nIndices) Record scatter-add-rows: [OP_SCATTER_ADD_ROWS, targetId, indicesId, gradId, targetRows, targetCols, nIdx]voidComputeGraph.recordScatterAddRowsAtomic(GpuBuffer target, GpuBuffer indices, GpuBuffer grad, int targetRows, int targetCols, int nIndices) Record scatter-add-rows (atomic): [OP_SCATTER_ADD_ROWS_ATOMIC, targetId, indicesId, gradId, targetRows, targetCols, nIdx]voidComputeGraph.recordSoftmaxBackward(GpuBuffer gradOutput, GpuBuffer softmaxOut, GpuBuffer out, int rows, int cols) Record softmax backward: [OP_SOFTMAX_BACKWARD, gradId, softmaxId, outId, rows, cols]voidComputeGraph.recordSoftmaxRows(GpuBuffer in, GpuBuffer out, int rows, int cols) Record softmax rows: [OP_SOFTMAX_ROWS, inId, outId, rows, cols]voidComputeGraph.recordSumAbs(GpuBuffer in, GpuBuffer out, int rows, int cols) Record sum-abs row reduction: [OP_SUM_ABS, inId, outId, rows, cols]voidComputeGraph.recordSumScalar(GpuBuffer in, GpuBuffer out, int rows, int cols) Record scalar sum reduction: [OP_SUM_SCALAR, inId, outId, rows, cols]voidComputeGraph.recordTranspose(GpuBuffer in, GpuBuffer out, int rows, int cols) Record transpose: [OP_TRANSPOSE, inId, outId, rows, cols]voidComputeGraph.recordUnary(int opCode, GpuBuffer in, GpuBuffer out) Record a unary op: [opCode, inId, outId, n]