mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Distributed layers (#1270)
This commit is contained in:
committed by
GitHub
parent
69e4dd506b
commit
4eef8102c9
@@ -993,6 +993,9 @@ array concatenate(
|
||||
throw std::invalid_argument(
|
||||
"[concatenate] No arrays provided for concatenation");
|
||||
}
|
||||
if (arrays.size() == 1) {
|
||||
return arrays[0];
|
||||
}
|
||||
|
||||
auto ax = normalize_axis_index(axis, arrays[0].ndim(), "[concatenate] ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user