Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FusedDense ¶
func FusedDense(f *gobackend.Function, x, weight, bias compute.Value, options compute.DenseConfig) (compute.Value, error)
FusedDense performs fused matrix multiplication + optional bias + optional activation:
y = activation(x @ W + bias) (for DenseLayoutInputOutputs) y = activation(x @ W^T + bias) (for DenseLayoutOutputsInput)
It directly delegates to the highly optimized matmul engine with an epilogue hook, avoiding intermediate buffer allocations and performing fused cache-resident epilogues.
func FusedDenseVJP ¶
func FusedDenseVJP(f *gobackend.Function, x, weight, bias, y, dOutput compute.Value, options compute.DenseConfig) (dx, dWeight, dBias compute.Value, err error)
FusedDenseVJP computes the Vector-Jacobian Product (gradients) of FusedDense with respect to inputs x, weight, and bias.
Types ¶
This section is empty.