mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Add vmap to scatter (#1200)
* Add vmap to scatter * updates * vmap updates + a few more tests * bug fix --------- Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
@@ -1713,7 +1713,9 @@ class Scatter : public UnaryPrimitive {
|
||||
void eval_cpu(const std::vector<array>& inputs, array& out) override;
|
||||
void eval_gpu(const std::vector<array>& inputs, array& out) override;
|
||||
|
||||
DEFINE_VMAP();
|
||||
DEFINE_GRADS();
|
||||
|
||||
void print(std::ostream& os) override {
|
||||
os << "Scatter";
|
||||
switch (reduce_type_) {
|
||||
|
||||
Reference in New Issue
Block a user