mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-15 21:21:16 +08:00

* einsum initial * fix comma break * sum axis was wrong * small cleanups * python binding * changed bindings to resemble numpy * remove todo comment * comment changes * add count of operands/inputs * fail fast if operands list is empty * ignore comma if no output * einsum path matching numpy * getting somewhere with path * remove print * it passes the first test * moved einsum tests to seperate file * seperated einsum path * moved einsum naive * remove space from equation * fast fail if no operands passed * update tests and remove printf * small cleanup * some more cleanups * removed python helper file * ack * utilize std for finding min in vector * duplicate def * remove the tuple as it was unreadable * moved einsum_naive back to ops * remaining isn't needed * avoid creating another set * cleanup * greedy path, start of naive einsum * more einsum * fix some bugs * some more fixes, tests pass * benchmark * some simplify * fix einsum and test Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com> * add a bunch more tests and fix a bunch more bugs * some docs nits --------- Co-authored-by: dc-dc-dc <dgcruz983@gmail.com> Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>
21 lines
461 B
C
21 lines
461 B
C
// Copyright © 2023 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
#include "mlx/backend/metal/metal.h"
|
|
#include "mlx/compile.h"
|
|
#include "mlx/device.h"
|
|
#include "mlx/distributed/distributed.h"
|
|
#include "mlx/distributed/ops.h"
|
|
#include "mlx/einsum.h"
|
|
#include "mlx/fast.h"
|
|
#include "mlx/fft.h"
|
|
#include "mlx/io.h"
|
|
#include "mlx/linalg.h"
|
|
#include "mlx/ops.h"
|
|
#include "mlx/random.h"
|
|
#include "mlx/stream.h"
|
|
#include "mlx/transforms.h"
|
|
#include "mlx/utils.h"
|