Documentation
¶
Index ¶
- Variables
- func BenchmarkConvGeneral(b *testing.B, backend compute.Backend)
- func BenchmarkDense(b *testing.B, backend compute.Backend)
- func BenchmarkDotGeneral(b *testing.B, backend compute.Backend)
- func BenchmarkFusedActivation(b *testing.B, backend compute.Backend)
- func BenchmarkGelu(b *testing.B, backend compute.Backend)
- func BenchmarkLayerNorm(b *testing.B, backend compute.Backend)
- func BenchmarkQuantizedDense(b *testing.B, backend compute.Backend)
- func BenchmarkScaledDotProductAttention(b *testing.B, backend compute.Backend)
- func BenchmarkSoftmax(b *testing.B, backend compute.Backend)
- func RunAll(t *testing.T, b compute.Backend, opts *AllTestsConfiguration)
- func RunAllBenchmarks(b *testing.B, backend compute.Backend)
- func TestBarriers(t *testing.T, b compute.Backend)
- func TestBinaryOps(t *testing.T, b compute.Backend)
- func TestBitcast(t *testing.T, b compute.Backend)
- func TestConvGeneral(t *testing.T, b compute.Backend, opts *AllTestsConfiguration)
- func TestConvertDType(t *testing.T, b compute.Backend)
- func TestDataDependentOps(t *testing.T, b compute.Backend)
- func TestDotGeneral(t *testing.T, backend compute.Backend)
- func TestDynamicOps(t *testing.T, b compute.Backend)
- func TestExec(t *testing.T, b compute.Backend)
- func TestFunctions(t *testing.T, b compute.Backend)
- func TestFusedOps(t *testing.T, b compute.Backend)
- func TestSpecialOps(t *testing.T, b compute.Backend)
- func TestUnaryOps(t *testing.T, b compute.Backend)
- type AllTestsConfiguration
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BenchmarkConvGeneral ¶ added in v0.1.24
BenchmarkConvGeneral runs standard 1D and 2D convolution benchmarks (forward, VJP wrt input, and VJP wrt kernel).
func BenchmarkFusedActivation ¶ added in v0.1.9
func BenchmarkQuantizedDense ¶
BenchmarkQuantizedDense compares fused quantized-dense (which uses highway SIMD when available) against a decomposed path and float32 Dense as a reference.
The decomposed path is only benchmarked for Int8 because the go backend does not support bitwise shift ops needed for NF4/Int4 nibble extraction.
func BenchmarkScaledDotProductAttention ¶ added in v0.1.30
func RunAll ¶
func RunAll(t *testing.T, b compute.Backend, opts *AllTestsConfiguration)
RunAll runs all generic backend tests on the given backend.
If opts is nil, all tests will be run with all default test configurations.
func TestConvGeneral ¶
func TestConvGeneral(t *testing.T, b compute.Backend, opts *AllTestsConfiguration)
func TestDataDependentOps ¶ added in v0.1.29
func TestDynamicOps ¶ added in v0.1.29
TestDynamicOps tests dynamic shape operations, anonymous/minted axis names, zero-sized dimensions, and related operator corner cases across backends.
Types ¶
type AllTestsConfiguration ¶
AllTestsConfiguration allows you to configure (select) which tests are run, in can your backend not support certain feature and you want to disable some specific tests.
The zero value always means "run all supported variants".
Source Files
¶
- backendtest.go
- barriers.go
- bench_convgeneral.go
- bench_dotgeneral.go
- benchmarks.go
- binary.go
- bitcast.go
- convert.go
- convgeneral.go
- data_dependent.go
- dotgeneral.go
- dynamic.go
- exec.go
- function.go
- fused_activation.go
- fusedops.go
- quantized_dense.go
- quantized_dense_ggml.go
- quantized_dense_vjp.go
- quantized_gather.go
- special.go
- unary.go