Loading c_binding/ml_c_embedder.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ /// @brief Implimentation of the c binding library. //------------------------------------------------------------------------------ #include <cstring> #include "ml_c_embedder.h" #include <ml_embedder.hpp> Loading Loading @@ -38,9 +40,7 @@ ml_model mlce_init_mlx(const char *filename, const int *in_shape, const size_t num_dims) { mlx::core::SmallVector<int> shape(num_dims); for (size_t i = 0; i < num_dims; i++) { shape[i] = in_shape[i]; } std::memcpy(shape.data(), in_shape, num_dims*sizeof(int)); return reinterpret_cast<ml_model> (new ml_embedder::mlx_model(std::string(filename), shape)); Loading ml_model_embedder.xcodeproj/project.xcworkspace/xcuserdata/m4c.xcuserdatad/UserInterfaceState.xcuserstate −2.46 KiB (407 KiB) File changed.No diff preview for this file type. View original file View changed file Loading
c_binding/ml_c_embedder.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ /// @brief Implimentation of the c binding library. //------------------------------------------------------------------------------ #include <cstring> #include "ml_c_embedder.h" #include <ml_embedder.hpp> Loading Loading @@ -38,9 +40,7 @@ ml_model mlce_init_mlx(const char *filename, const int *in_shape, const size_t num_dims) { mlx::core::SmallVector<int> shape(num_dims); for (size_t i = 0; i < num_dims; i++) { shape[i] = in_shape[i]; } std::memcpy(shape.data(), in_shape, num_dims*sizeof(int)); return reinterpret_cast<ml_model> (new ml_embedder::mlx_model(std::string(filename), shape)); Loading
ml_model_embedder.xcodeproj/project.xcworkspace/xcuserdata/m4c.xcuserdatad/UserInterfaceState.xcuserstate −2.46 KiB (407 KiB) File changed.No diff preview for this file type. View original file View changed file