huggingface / huggingface/candle

[Feature] Add masked_fill under Tensor

Open
#2,370 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

The equivalent to [torch.Tensor.masked_fill_](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_fill_.html#torch.Tensor.masked_fill_).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Candle's Tensor API and compare the requested operation with the linked torch.Tensor.masked_fill_ reference. Add masked_fill with equivalent behavior and verify that the Tensor operation works for the expected mask and fill-value cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.