MLX
 
Loading...
Searching...
No Matches
copy.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2
3#pragma once
4
5#include "mlx/array.h"
6
7namespace mlx::core {
8
9enum class CopyType {
10 // Copy a raw scalar input into the full contiguous output
12
13 // Copy the raw input buffer contiguously into a raw output buffer of the same
14 // size
16
17 // Copy the full virtual input to the full contiguous output
19
20 // Copy the full virtual input to the full virtual output. We assume the
21 // input and output have the same shape.
23};
24
25} // namespace mlx::core
Definition allocator.h:7
@ General
Definition binary.h:16
CopyType
Definition copy.h:9
@ Vector
Definition copy.h:15
@ GeneralGeneral
Definition copy.h:22
@ Scalar
Definition copy.h:11