mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 09:51:17 +08:00
24 lines
593 B
C++
24 lines
593 B
C++
// Copyright © 2023 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void print_graph(std::ostream& os, const std::vector<array>& outputs);
|
|
|
|
template <typename... Arrays>
|
|
void print_graph(std::ostream& os, Arrays... outputs) {
|
|
print_graph(os, std::vector<array>{std::forward<Arrays>(outputs)...});
|
|
}
|
|
|
|
void export_to_dot(std::ostream& os, const std::vector<array>& outputs);
|
|
|
|
template <typename... Arrays>
|
|
void export_to_dot(std::ostream& os, Arrays... outputs) {
|
|
export_to_dot(os, std::vector<array>{std::forward<Arrays>(outputs)...});
|
|
}
|
|
|
|
} // namespace mlx::core
|