mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
LogCumSumExp (#2069)
This commit is contained in:
@@ -1728,7 +1728,7 @@ class Round : public UnaryPrimitive {
|
||||
|
||||
class Scan : public UnaryPrimitive {
|
||||
public:
|
||||
enum ReduceType { Max, Min, Sum, Prod };
|
||||
enum ReduceType { Max, Min, Sum, Prod, LogAddExp };
|
||||
|
||||
explicit Scan(
|
||||
Stream stream,
|
||||
@@ -1763,6 +1763,9 @@ class Scan : public UnaryPrimitive {
|
||||
case Max:
|
||||
os << "Max";
|
||||
break;
|
||||
case LogAddExp:
|
||||
os << "Logaddexp";
|
||||
break;
|
||||
}
|
||||
}
|
||||
bool is_equivalent(const Primitive& other) const override;
|
||||
|
||||
Reference in New Issue
Block a user