From 987785d8d79082316977afa8d0032e1819e3efad Mon Sep 17 00:00:00 2001 From: Feng Shijie Date: Mon, 15 Jul 2024 23:20:24 +0800 Subject: [PATCH] Fix typo and missing header (#1266) --- mlx/primitives.cpp | 2 +- mlx/random.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mlx/primitives.cpp b/mlx/primitives.cpp index 289bd6053..46cc3df33 100644 --- a/mlx/primitives.cpp +++ b/mlx/primitives.cpp @@ -124,7 +124,7 @@ std::vector Primitive::vjp( const std::vector&, const std::vector&) { std::ostringstream msg; - msg << "[Primitive::vip] Not implemented for "; + msg << "[Primitive::vjp] Not implemented for "; print(msg); msg << "."; throw std::invalid_argument(msg.str()); diff --git a/mlx/random.h b/mlx/random.h index 1b97413ee..fb1a76bc0 100644 --- a/mlx/random.h +++ b/mlx/random.h @@ -7,6 +7,7 @@ #include "mlx/array.h" #include "mlx/stream.h" +#include "mlx/utils.h" namespace mlx::core::random {