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
7
namespace
mlx::core
{
8
9
enum class
CopyType
{
10
// Copy a raw scalar input into the full contiguous output
11
Scalar
,
12
13
// Copy the raw input buffer contiguously into a raw output buffer of the same
14
// size
15
Vector
,
16
17
// Copy the full virtual input to the full contiguous output
18
General
,
19
20
// Copy the full virtual input to the full virtual output. We assume the
21
// input and output have the same shape.
22
GeneralGeneral
23
};
24
25
}
// namespace mlx::core
array.h
mlx::core
Definition
allocator.h:7
mlx::core::BinaryOpType::General
@ General
Definition
binary.h:16
mlx::core::CopyType
CopyType
Definition
copy.h:9
mlx::core::CopyType::Vector
@ Vector
Definition
copy.h:15
mlx::core::CopyType::GeneralGeneral
@ GeneralGeneral
Definition
copy.h:22
mlx::core::CopyType::Scalar
@ Scalar
Definition
copy.h:11
mlx
backend
common
copy.h
Generated by
1.13.2