mlx/python/tests
Asaf Zorea 295ce9db09
Feature expand nn linear (#315)
* Added an identity and bilinear layers
Added a reset_parameters option
Added normal init for bias

* pre-commit run

* add type hints for parameters and the return type
change Bilinear math to x_1 and x_2
change __call__ arguments to x and y instead of input and output
add explanation to the Initialization

* Remove unnecessary reshape

* Added 'i' to bilinear formula

* Changed bilinear computation to two matrix multiplications

* avoid saving intermediate results, kept y in bilinear for better clarity (can be replaced with x1)

* Changed math formula in Linear
Added more explanation to math formulas
Changed x1, x2 reshape to support all inputs sizes
2024-01-02 06:08:53 -08:00
..
mlx_tests.py added tri / tril / triu (#170) 2023-12-15 17:30:34 -08:00
test_array.py Spelling (#342) 2024-01-01 21:08:17 -08:00
test_autograd.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_bf16.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_blas.py Spelling (#342) 2024-01-01 21:08:17 -08:00
test_conv.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_device.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_eval.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_fft.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_linalg.py linalg.norm (#187) 2023-12-26 19:42:04 -08:00
test_load.py Safetensor support (#215) 2023-12-27 02:06:55 -08:00
test_nn.py Feature expand nn linear (#315) 2024-01-02 06:08:53 -08:00
test_ops.py Spelling (#342) 2024-01-01 21:08:17 -08:00
test_optimizers.py Pr template (#99) 2023-12-09 09:36:56 -08:00
test_quantized.py Fix tolerance in de-/quantization test (#295) 2023-12-26 19:21:05 -08:00
test_random.py random.uniform must respect dtype, even if lower precision than "low" (#280) 2023-12-24 07:04:43 -08:00
test_reduce.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_tree.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_vmap.py Add move and swap axis, and vmap for slice, concat, and gather (#158) 2023-12-14 12:59:12 -08:00