Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/tvm/relax/op/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.
"""Operators with mask."""
from . import _ffi_api
from .create import full_like
from ..expr import Expr


Expand All @@ -34,5 +35,5 @@ def masked_fill(x: Expr, mask: Expr, value: Expr):
result : relax.Expr
The filled tensor.
"""
values = _ffi_api.full_like(x, value) # type: ignore
values = full_like(x, value) # type: ignore
return _ffi_api.where(mask, values, x) # type: ignore