mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-28 05:01:19 +08:00
19 lines
400 B
C++
19 lines
400 B
C++
// Copyright © 2023 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/backend/common/copy.h"
|
|
#include "mlx/stream.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void copy_gpu(const array& src, array& out, CopyType ctype, const Stream& s);
|
|
void copy_gpu(const array& src, array& out, CopyType ctype);
|
|
void copy_gpu_inplace(
|
|
const array& src,
|
|
array& out,
|
|
CopyType ctype,
|
|
const Stream& s);
|
|
|
|
} // namespace mlx::core
|