mlx-sys 0.0.8

Low-level interface and binding generation for the mlx library
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright © 2023-2024 Apple Inc. */

#ifndef MLX_DEVICE_PRIVATE_H
#define MLX_DEVICE_PRIVATE_H

#include "mlx/c/device.h"
#include "mlx/c/private/object.h"
#include "mlx/mlx.h"

struct mlx_device_ : mlx_object_ {
  mlx_device_(mlx::core::Device ctx) : mlx_object_(), ctx(ctx){};
  virtual mlx_string_* tostring() override;
  mlx::core::Device ctx;
};

#endif