Added missing unordered_map includes (#1635)

* Added missing includes in mlx/io.h and mlx/backend/metal/metal.h

* Added additional missing unordered_map includes that fixes build on FreeBSD
This commit is contained in:
Jesper Stemann Andersen 2024-12-02 16:03:03 +01:00 committed by GitHub
parent aa86876813
commit e4eeb4e910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
// Copyright © 2023-2024 Apple Inc. // Copyright © 2023-2024 Apple Inc.
#include <functional> #include <functional>
#include <unordered_map>
#include "mlx/array.h" #include "mlx/array.h"
#include "mlx/ops.h" #include "mlx/ops.h"

View File

@ -2,6 +2,7 @@
#pragma once #pragma once
#include <unordered_map>
#include <variant> #include <variant>
#include "mlx/array.h" #include "mlx/array.h"

View File

@ -2,6 +2,8 @@
#pragma once #pragma once
#include <unordered_map>
#include "mlx/array.h" #include "mlx/array.h"
namespace mlx::core { namespace mlx::core {

View File

@ -2,6 +2,7 @@
#pragma once #pragma once
#include <unordered_map>
#include <variant> #include <variant>
#include "mlx/array.h" #include "mlx/array.h"