Documentation
¶
Index ¶
- Variables
- func BenchmarkDense(b *testing.B, backend compute.Backend)
- func BenchmarkDotGeneral(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 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 TestDotGeneral(t *testing.T, backend 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 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 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)
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".