mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Add Primitive::name and remove Primitive::print (#2365)
This commit is contained in:
@@ -93,7 +93,7 @@ void print_graph(
|
||||
os << "\n";
|
||||
|
||||
for (auto& arr : tape) {
|
||||
arr.primitive().print(os);
|
||||
os << arr.primitive().name();
|
||||
os << " ";
|
||||
print_arrs(arr.inputs());
|
||||
os << " -> ";
|
||||
@@ -143,7 +143,7 @@ void export_to_dot(
|
||||
os << "{ ";
|
||||
os << x.primitive_id();
|
||||
os << " [label =\"";
|
||||
x.primitive().print(os);
|
||||
os << x.primitive().name();
|
||||
os << "\", shape=rectangle]";
|
||||
os << "; }" << std::endl;
|
||||
// Arrows to primitive's inputs
|
||||
|
||||
Reference in New Issue
Block a user