mlx/mlx
Nripesh Niketan 73321b8097
feat: add logicalAnd and logicalOR (#386)
* feat: add logicalAnd and logicalOR

* run pre-commit

* Refactor logical_and and logical_or functions

* Add acknowledgement

* Add logical AND and logical OR operators

* Refactor logical_and and logical_or functions

* Add support for logical operators on bool arrays

* Update mlx/ops.cpp

Co-authored-by: Awni Hannun <awni.hannun@gmail.com>

* Update mlx/ops.cpp

Co-authored-by: Awni Hannun <awni.hannun@gmail.com>

* Add logical AND and OR operators for arrays and scalars

* Refactor vjp and jvp methods in primitives.cpp

* Add overloaded operators for logical AND and OR

* format

---------

Co-authored-by: Awni Hannun <awni.hannun@gmail.com>
Co-authored-by: Awni Hannun <awni@apple.com>
2024-01-08 07:00:05 -08:00
..
3rdparty jagrit's commit files 2023-11-29 10:52:08 -08:00
backend feat: add logicalAnd and logicalOR (#386) 2024-01-08 07:00:05 -08:00
io Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
types Spelling (#342) 2024-01-01 21:08:17 -08:00
allocator.cpp Memory allocation (#292) 2024-01-02 11:59:19 -08:00
allocator.h Memory allocation (#292) 2024-01-02 11:59:19 -08:00
array.cpp Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
array.h Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
CMakeLists.txt Safetensor support (#215) 2023-12-27 02:06:55 -08:00
device.cpp copyright + ack 2023-11-30 11:12:53 -08:00
device.h copyright + ack 2023-11-30 11:12:53 -08:00
dtype.cpp copyright + ack 2023-11-30 11:12:53 -08:00
dtype.h random generation fix (#80) 2023-12-08 10:40:57 -08:00
fft.cpp Spelling (#342) 2024-01-01 21:08:17 -08:00
fft.h copyright + ack 2023-11-30 11:12:53 -08:00
graph_utils.cpp copyright + ack 2023-11-30 11:12:53 -08:00
graph_utils.h copyright + ack 2023-11-30 11:12:53 -08:00
linalg.cpp linalg.norm (#187) 2023-12-26 19:42:04 -08:00
linalg.h linalg.norm (#187) 2023-12-26 19:42:04 -08:00
mlx.h linalg.norm (#187) 2023-12-26 19:42:04 -08:00
ops.cpp feat: add logicalAnd and logicalOR (#386) 2024-01-08 07:00:05 -08:00
ops.h feat: add logicalAnd and logicalOR (#386) 2024-01-08 07:00:05 -08:00
primitives.cpp feat: add logicalAnd and logicalOR (#386) 2024-01-08 07:00:05 -08:00
primitives.h feat: add logicalAnd and logicalOR (#386) 2024-01-08 07:00:05 -08:00
random.cpp Spelling (#342) 2024-01-01 21:08:17 -08:00
random.h Spelling (#342) 2024-01-01 21:08:17 -08:00
scheduler.cpp copyright + ack 2023-11-30 11:12:53 -08:00
scheduler.h move all ObjC (via metal-cpp) interaction until post static initializers (#370) 2024-01-04 16:12:00 -08:00
stream.h copyright + ack 2023-11-30 11:12:53 -08:00
transforms_impl.h Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
transforms.cpp Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
transforms.h Removes the retain_graph flag (#385) 2024-01-07 15:16:51 -08:00
utils.cpp implemented Flatten Module (#149) 2023-12-16 21:54:37 -08:00
utils.h Added mx.stack c++ frontend impl (#123) 2023-12-14 13:21:19 -08:00